@commands.command(aliases=["topv"])
async def _top10(self, ctx):
for member in self.client.get_all_members():
cursor.execute(f"SELECT voice_s,voice_m,voice_h,voice_d message FROM users where id={member.id} ORDER BY txp + 0 DESC LIMIT 5")
result = cursor.fetchall()
embed = discord.Embed(title="Leaderboards", colour=discord.Colour(0x6790a7))
for i, x in enumerate(result, 1):
embed.add_field(name=f"#{i}", value=f"{member.name} ``{x[3]}д. {x[2]}ч. {x[1]}м. {x[0]}с.", inline=False)
await ctx.send(embed=embed)
print(result)