aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-02-20 15:53:42 +0000
committerGravatar Chris <[email protected]>2021-02-20 15:53:42 +0000
commita30f4448bfe411cf418e4de938870d89680d68df (patch)
tree4626dcb4c482f7d61326801ffbb05b0293a122a5
parentHoist apply effect and remove private _. (diff)
Don't return discord.Message from ctx.send calls
-rw-r--r--bot/exts/evergreen/profile_pic_modification/pfp_modify.py6
1 files changed, 4 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 a58f44d2..f3e8d426 100644
--- a/bot/exts/evergreen/profile_pic_modification/pfp_modify.py
+++ b/bot/exts/evergreen/profile_pic_modification/pfp_modify.py
@@ -156,7 +156,8 @@ class PfpModify(commands.Cog):
pixels = max(0, min(512, pixels))
flag = self.GENDER_OPTIONS.get(option)
if flag is None:
- return await ctx.send("I don't have that flag!")
+ await ctx.send("I don't have that flag!")
+ return
async with ctx.typing():
image_bytes = await ctx.author.avatar_url.read()
@@ -176,7 +177,8 @@ class PfpModify(commands.Cog):
pixels = max(0, min(512, pixels))
flag = self.GENDER_OPTIONS.get(option)
if flag is None:
- return await ctx.send("I don't have that flag!")
+ await ctx.send("I don't have that flag!")
+ return
async with ctx.typing():
async with self.bot.http_session as session: