fix(shard): 🐛 Ignore system messages.

This commit is contained in:
2025-03-19 19:17:51 -03:00
parent d1f2dbb0d7
commit 9d1e24fa51
+10 -2
View File
@@ -205,7 +205,10 @@ class Calls(base.Cog):
ctx = await self.bot.get_context(message)
if message.author.bot or ctx.valid:
if message.author.bot or ctx.valid or message.author.system:
return
if message.type in [discord.MessageType.default, discord.MessageType.reply]:
return
if await self.bot.is_banned(message.author.id):
@@ -223,7 +226,12 @@ class Calls(base.Cog):
message.channel.id,
)
if participant.display_name.lower() in ["everyone", "here", "wumpus", "discord"]:
if participant.display_name.lower() in [
"everyone",
"here",
"wumpus",
"discord",
]:
await message.reply(
f"❌ You can't use {participant.display_name} as your name in calls.\n-# Restriction imposed by Discord."
)