diff options
author | 2021-04-06 14:09:27 -0700 | |
---|---|---|
committer | 2021-04-06 14:09:27 -0700 | |
commit | 790126739265e755c3d50d19e8368813d5d4454b (patch) | |
tree | 7a10f03ad8fb76666a1dacec55c0125d3f02a439 | |
parent | Merge pull request #658 from python-discord/ks123/ghcr-token-to-github (diff) | |
parent | Merge branch 'main' into vcokltfre-avatar (diff) |
Merge pull request #657 from python-discord/vcokltfre-avatar
fix: use get_user in 8bitify to avoid events issues
-rw-r--r-- | bot/exts/evergreen/8bitify.py | 3 |
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)) |