diff options
| author | 2021-03-13 14:57:54 +0000 | |
|---|---|---|
| committer | 2021-03-13 14:57:54 +0000 | |
| commit | 88e7ab58ff6ad74a8323c828cc5411886bb57dbe (patch) | |
| tree | 095f6dde35214ef330944df6be0e576852f7e2fa | |
| parent | Fix filename for spooky effect avatars (diff) | |
Use user reference passed via command
The command takes in user as argument but doesn't use it while converting the image into bytes.
Co-authored-by: Shivansh-007 <[email protected]>
| -rw-r--r-- | bot/exts/evergreen/profile_pic_modification/pfp_modify.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/bot/exts/evergreen/profile_pic_modification/pfp_modify.py b/bot/exts/evergreen/profile_pic_modification/pfp_modify.py index 9b874900..aa0f0404 100644 --- a/bot/exts/evergreen/profile_pic_modification/pfp_modify.py +++ b/bot/exts/evergreen/profile_pic_modification/pfp_modify.py @@ -241,11 +241,11 @@ class PfpModify(commands.Cog):              user = ctx.message.author          async with ctx.typing(): -            image_bytes = await ctx.author.avatar_url.read() +            image_bytes = await user.avatar_url.read()              file_name = FILENAME_STRING.format(                  effect="spooky_avatar", -                author=ctx.author.display_name +                author=user.display_name              )              file = await in_executor(                  PfpEffects.apply_effect, | 
