From a30f4448bfe411cf418e4de938870d89680d68df Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 20 Feb 2021 15:53:42 +0000 Subject: Don't return discord.Message from ctx.send calls --- bot/exts/evergreen/profile_pic_modification/pfp_modify.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bot') 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: -- cgit v1.2.3