aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-04-08 09:22:01 +0200
committerGravatar GitHub <[email protected]>2021-04-08 09:22:01 +0200
commit3ed127052c4fffe76729b42f594e2c4656350dae (patch)
treef3bc20c45e9250a72dc4e5cb8c01017e40bbfd32
parentIssues: make use of invoke_help_command (diff)
parentMerge pull request #657 from python-discord/vcokltfre-avatar (diff)
Merge branch 'main' into akarys/630/automatic-linking-everywhere
-rw-r--r--bot/exts/evergreen/8bitify.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/evergreen/8bitify.py b/bot/exts/evergreen/8bitify.py
index 54e68f80..7eb4d313 100644
--- a/bot/exts/evergreen/8bitify.py
+++ b/bot/exts/evergreen/8bitify.py
@@ -25,7 +25,8 @@ class EightBitify(commands.Cog):
async def eightbit_command(self, ctx: commands.Context) -> None:
"""Pixelates your avatar and changes the palette to an 8bit one."""
async with ctx.typing():
- image_bytes = await ctx.author.avatar_url.read()
+ author = await self.bot.fetch_user(ctx.author.id)
+ image_bytes = await author.avatar_url.read()
avatar = Image.open(BytesIO(image_bytes))
avatar = avatar.convert("RGBA").resize((1024, 1024))