mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix AttributeError in examples
This commit is contained in:
1 parent
9f3551926a
commit
127b3239e9
2 files changed
+2
-2
No files matched your search
@@ -28,7 +28,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.avatar.url
|
||||
await ctx.send(f'User found: {user_id} -- {username}\n{avatar}')
|
||||
|
||||
@userinfo.error
|
||||
|
||||
Reference in new issue
Block a user