FIxed userinfo
command not returning an avatar...
...if the avatar of the user specified is a default avatar
This commit is contained in:
parent
53a6b2cb45
commit
809f093ca3
@ -27,7 +27,7 @@ async def userinfo(ctx: commands.Context, user: discord.User):
|
|||||||
# and can do the following:
|
# and can do the following:
|
||||||
user_id = user.id
|
user_id = user.id
|
||||||
username = user.name
|
username = user.name
|
||||||
avatar = user.avatar.url
|
avatar = user.display_avatar.url
|
||||||
await ctx.send(f'User found: {user_id} -- {username}\n{avatar}')
|
await ctx.send(f'User found: {user_id} -- {username}\n{avatar}')
|
||||||
|
|
||||||
@userinfo.error
|
@userinfo.error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user