mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Fix AttributeError in examples
This commit is contained in:
@ -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