aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-04-08 10:05:53 +0100
committerGravatar Chris <[email protected]>2021-04-08 10:05:53 +0100
commitc9e4916cb1cad8d43148030660575f5084710d38 (patch)
treed3cea5628424af8e4164a234d4aac77b5c9afb4e
parentRefactor pfp cog to remove unnecessary params and calls (diff)
Ensure to await ctx.send() calls
-rw-r--r--bot/exts/evergreen/profile_pic_modification/pfp_modify.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/exts/evergreen/profile_pic_modification/pfp_modify.py b/bot/exts/evergreen/profile_pic_modification/pfp_modify.py
index 712631d1..68d68927 100644
--- a/bot/exts/evergreen/profile_pic_modification/pfp_modify.py
+++ b/bot/exts/evergreen/profile_pic_modification/pfp_modify.py
@@ -72,7 +72,7 @@ class PfpModify(commands.Cog):
async with ctx.typing():
member = await self._fetch_member(ctx.author.id)
if not member:
- ctx.send(f"{Emojis.cross_mark} Could not get member info.")
+ await ctx.send(f"{Emojis.cross_mark} Could not get member info.")
return
image_bytes = await member.avatar_url.read()
@@ -121,7 +121,7 @@ class PfpModify(commands.Cog):
async with ctx.typing():
member = await self._fetch_member(ctx.author.id)
if not member:
- ctx.send(f"{Emojis.cross_mark} Could not get member info.")
+ await ctx.send(f"{Emojis.cross_mark} Could not get member info.")
return
egg = None
@@ -213,7 +213,7 @@ class PfpModify(commands.Cog):
async with ctx.typing():
member = await self._fetch_member(ctx.author.id)
if not member:
- ctx.send(f"{Emojis.cross_mark} Could not get member info.")
+ await ctx.send(f"{Emojis.cross_mark} Could not get member info.")
return
image_bytes = await member.avatar_url.read()
await self.send_pride_image(ctx, image_bytes, pixels, flag, option)
@@ -274,7 +274,7 @@ class PfpModify(commands.Cog):
member = await self._fetch_member(member.id)
if not member:
- ctx.send(f"{Emojis.cross_mark} Could not get member info.")
+ await ctx.send(f"{Emojis.cross_mark} Could not get member info.")
return
async with ctx.typing():