Use display_avatar instead of avatar in converters example

This commit is contained in:
Stocker 2022-03-06 23:05:06 -05:00 committed by GitHub
parent 5780ff5ef0
commit e63c9bad85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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