Fix AttributeError in examples

This commit is contained in:
apple502j
2021-04-27 21:09:01 +09:00
committed by GitHub
parent 9f3551926a
commit 127b3239e9
2 changed files with 2 additions and 2 deletions

View File

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