1
0
Fork 0
mirror of https://gitlab.jonasled.de/jonasled/discordbot synced 2024-07-06 17:28:34 +02:00

use display_name instead of username in level command

This commit is contained in:
Jonas Leder 2020-09-28 20:49:05 +02:00
parent c806a7622e
commit 1c37859061

2
bot.py
View file

@ -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])