diff --git a/payphone/cogs/calls/cog.py b/payphone/cogs/calls/cog.py index 5a4fdbb..97cf297 100644 --- a/payphone/cogs/calls/cog.py +++ b/payphone/cogs/calls/cog.py @@ -239,22 +239,21 @@ class Calls(base.Cog): ) if blocked_section: - return await asyncio.gather( - message.channel.send( - ( - "❌ Your message wasn't sent because it contained a blocked word or " - f"pattern: `{blocked_section}`" - ), - delete_after=10, + await message.channel.send( + ( + "❌ Your message wasn't sent because it contained a blocked word or " + f"pattern: `{blocked_section}`" ), - self.bot.get_partial_messageable(other_channel).send( - ( - f"❌ **{message.author.display_name}** sent a message that was blocked.\n" - "-# If you see an inappropiate message, please report it using `Apps > " - "Report Message`." - ), + delete_after=10, + ) + await self.bot.get_partial_messageable(other_channel).send( + ( + f"❌ **{message.author.display_name}** sent a message that was blocked.\n" + "-# If you see an inappropiate message, please report it using `Message > " + "Apps > Report Message`." ), ) + return message_content = self.bot.clean_message(message) @@ -462,7 +461,7 @@ class Calls(base.Cog): try: await webhook.delete_message(propagation_id) - + except discord.errors.NotFound: pass