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
+1
-1
@@ -81,7 +81,7 @@ async def emoji(ctx: commands.Context, emoji: discord.PartialEmoji, *roles: disc
|
||||
"""
|
||||
|
||||
# fetch the emoji asset and read it as bytes.
|
||||
emoji_bytes = await emoji.url.read()
|
||||
emoji_bytes = await emoji.read()
|
||||
|
||||
# the key parameter here is `roles`, which controls
|
||||
# what roles are able to use the emoji.
|
||||
|
||||
Reference in new issue
Block a user