fix(shard): 🚑 Fix injection attacks.
This commit is contained in:
@@ -293,6 +293,7 @@ class Calls(base.Cog):
|
||||
"❌ Your message wasn't sent because it contained a blocked word or "
|
||||
f"pattern: `{blocked_section}`"
|
||||
),
|
||||
allowed_mentions=discord.AllowedMentions.none(),
|
||||
delete_after=10,
|
||||
)
|
||||
await self.bot.get_partial_messageable(other_channel).send(
|
||||
@@ -301,6 +302,7 @@ class Calls(base.Cog):
|
||||
"-# If you see an inappropiate message, please report it using `Message > "
|
||||
"Apps > Report Message`."
|
||||
),
|
||||
allowed_mentions=discord.AllowedMentions.none(),
|
||||
)
|
||||
return
|
||||
|
||||
@@ -449,6 +451,7 @@ class Calls(base.Cog):
|
||||
username=participant.display_name,
|
||||
avatar_url=participant.display_avatar_url,
|
||||
embeds=embeds,
|
||||
allowed_mentions=discord.AllowedMentions.none(),
|
||||
wait=True,
|
||||
)
|
||||
|
||||
@@ -544,6 +547,7 @@ class Calls(base.Cog):
|
||||
"permission? Make sure to keep that one enabled."
|
||||
),
|
||||
delete_after=10,
|
||||
allowed_mentions=discord.AllowedMentions.none(),
|
||||
)
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user