diff options
author | 2021-04-15 19:18:47 +0530 | |
---|---|---|
committer | 2021-04-15 19:18:47 +0530 | |
commit | c25976c654162cd4222b1d1e1088d978971bcabb (patch) | |
tree | b455db8577d1746d7623e7b891a8549432246eea /bot/exts/evergreen/8bitify.py | |
parent | Merge branch 'master' of https://github.com/python-discord/sir-lancebot (diff) | |
parent | Merge pull request #679 from python-discord/vcokltfre/fix/timed-error-help (diff) |
Update branch
Diffstat (limited to 'bot/exts/evergreen/8bitify.py')
-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)) |