mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
* Revert "new mention behavior, new filter behavior (#3553)"
This reverts commit 066bf516d9.
* keep invalid escape fix
This commit is contained in:
@@ -973,7 +973,6 @@ class RedBase(
|
||||
async def send_filtered(
|
||||
destination: discord.abc.Messageable,
|
||||
filter_mass_mentions=True,
|
||||
filter_roles=True,
|
||||
filter_invite_links=True,
|
||||
filter_all_links=False,
|
||||
**kwargs,
|
||||
@@ -1000,8 +999,6 @@ class RedBase(
|
||||
content = kwargs.pop("content", None)
|
||||
|
||||
if content:
|
||||
if filter_roles and isinstance(destination, discord.TextChannel):
|
||||
content = common_filters.sanitize_role_mentions(content, destination.guild.roles)
|
||||
if filter_mass_mentions:
|
||||
content = common_filters.filter_mass_mentions(content)
|
||||
if filter_invite_links:
|
||||
|
||||
Reference in New Issue
Block a user