modified: bot.py
This commit is contained in:
4
bot.py
4
bot.py
@@ -531,11 +531,11 @@ async def leaderboard(ctx):
|
||||
cursor.close()
|
||||
connection.close()
|
||||
|
||||
embed = discord.Embed(title="Level Leaderboard", color=0x3498db)
|
||||
embed = discord.Embed(title="🏆 **Leaderboard** 🏆", color=0x3498db)
|
||||
|
||||
for idx, user_data in enumerate(top_users, start=1):
|
||||
user = client.get_user(user_data["user_id"])
|
||||
username = user.name if user else f"User ID: {user_data['user_id']}"
|
||||
username = user.display_name if user else f"User ID: {user_data['user_id']}"
|
||||
embed.add_field(name=f"{idx}. {username}", value=f"Level {user_data['level']} - {user_data['xp']} XP", inline=False)
|
||||
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
Reference in New Issue
Block a user