diff options
| author | ChristopherJHart <[email protected]> | 2020-10-04 22:52:00 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-10-04 22:52:00 -0400 |
| commit | f308f34db1b1c24178fbdb1756838064cd9e4348 (patch) | |
| tree | 3f7aff936cd29185bbc876e2965dfa7dfd321ff4 | |
| parent | Add intents to the issue template (diff) | |
| download | discord.py-f308f34db1b1c24178fbdb1756838064cd9e4348.tar.xz discord.py-f308f34db1b1c24178fbdb1756838064cd9e4348.zip | |
Add note pointing to discord.AllowedMentions
| -rw-r--r-- | discord/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/discord/utils.py b/discord/utils.py index efab5908..39e097d5 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -533,6 +533,12 @@ def escape_mentions(text): This does not include channel mentions. + .. note:: + + For more granular control over what mentions should be escaped + within messages, refer to the :class:`~discord.AllowedMentions` + class. + Parameters ----------- text: :class:`str` |