mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Use display_avatar instead of avatar in converters example
This commit is contained in:
parent
5780ff5ef0
commit
e63c9bad85
@ -30,7 +30,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
|
||||
|
Loading…
x
Reference in New Issue
Block a user