mirror of
https://gitlab.jonasled.de/jonasled/discordbot
synced 2024-10-05 08:48:51 +02:00
use display_name instead of username in level command
This commit is contained in:
parent
c806a7622e
commit
1c37859061
1 changed files with 1 additions and 1 deletions
2
bot.py
2
bot.py
|
@ -229,7 +229,7 @@ async def level(ctx, user : discord.Member=None):#shows your current XP and leve
|
|||
|
||||
level = level - 1 #subtract one level, because the last level the user didn't reached
|
||||
|
||||
username = str(user.name)#get the username
|
||||
username = str(user.display_name)#get the username
|
||||
embed = discord.Embed(title="Stats of " + username , description="Rank " + str(rank) + " of " + str(len(ranking)))#make the response message
|
||||
embed.set_thumbnail(url=user.avatar_url)
|
||||
embed.add_field(name="Text XP", value=xp[0])
|
||||
|
|
Loading…
Reference in a new issue