fix(shard): 🐛 Extract coros from asyncio.gather for better (individual) error logging.
This commit is contained in:
@@ -239,22 +239,21 @@ class Calls(base.Cog):
|
||||
)
|
||||
|
||||
if blocked_section:
|
||||
return await asyncio.gather(
|
||||
message.channel.send(
|
||||
await message.channel.send(
|
||||
(
|
||||
"❌ Your message wasn't sent because it contained a blocked word or "
|
||||
f"pattern: `{blocked_section}`"
|
||||
),
|
||||
delete_after=10,
|
||||
),
|
||||
self.bot.get_partial_messageable(other_channel).send(
|
||||
)
|
||||
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 `Apps > "
|
||||
"Report Message`."
|
||||
),
|
||||
"-# If you see an inappropiate message, please report it using `Message > "
|
||||
"Apps > Report Message`."
|
||||
),
|
||||
)
|
||||
return
|
||||
|
||||
message_content = self.bot.clean_message(message)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user