fix(shard): 🐛 Ignore system messages.
This commit is contained in:
@@ -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."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user