@client.command(aliases = ['leaderboard', 'lb'])
async def __leaderboard(ctx):
embed = discord.Embed(title = 'Топ 10 сервера')
counter = 0
for row in cursor.execute("SELECT name, cash FROM users WHERE server_id = {} ORDER BY cash DESC LIMIT 10".format(ctx.guild.id)):
counter += 1
embed.add_field(
name = f'# {counter} | `{row[0]}`',
value = f'Баланс: {row[1]}',
inline = False
)
await ctx.send(embed = embed)