Revert "new mention behavior, new filter behavior (#3553)" (#3619)

* Revert "new mention behavior, new filter behavior (#3553)"

This reverts commit 066bf516d9.

* keep invalid escape fix
This commit is contained in:
jack1142
2020-02-28 20:34:51 +01:00
committed by GitHub
parent 136fcd7bb2
commit 227009733e
3 changed files with 0 additions and 43 deletions

View File

@@ -75,9 +75,6 @@ class Context(DPYContext):
:func:`~redbot.core.utils.common_filters.filter_mass_mentions`.
This must take a single `str` as an argument, and return
the sanitized `str`.
sanitize_roles : bool
Whether or not role mentions should be sanitized for you.
Defaults to ``True``
**kwargs
See `discord.ext.commands.Context.send`.
@@ -89,10 +86,6 @@ class Context(DPYContext):
"""
_filter = kwargs.pop("filter", common_filters.filter_mass_mentions)
sanitize_roles = kwargs.pop("sanitize_roles", True)
if sanitize_roles and content and self.guild:
content = common_filters.sanitize_role_mentions(str(content), self.guild.roles)
if _filter and content:
content = _filter(str(content))