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