FIxed userinfo command not returning an avatar...

...if the avatar of the user specified is a default avatar
This commit is contained in:
Sonic4999 2021-09-05 13:53:09 -04:00
parent 53a6b2cb45
commit 809f093ca3

View File

@ -27,7 +27,7 @@ async def userinfo(ctx: commands.Context, user: discord.User):
# and can do the following:
user_id = user.id
username = user.name
avatar = user.avatar.url
avatar = user.display_avatar.url
await ctx.send(f'User found: {user_id} -- {username}\n{avatar}')
@userinfo.error