aboutsummaryrefslogtreecommitdiff
path: root/examples/secret.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/secret.py')
-rw-r--r--examples/secret.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/secret.py b/examples/secret.py
index 1e90d8f5..9246c68f 100644
--- a/examples/secret.py
+++ b/examples/secret.py
@@ -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.