aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopherJHart <[email protected]>2020-10-04 22:52:00 -0400
committerGitHub <[email protected]>2020-10-04 22:52:00 -0400
commitf308f34db1b1c24178fbdb1756838064cd9e4348 (patch)
tree3f7aff936cd29185bbc876e2965dfa7dfd321ff4
parentAdd intents to the issue template (diff)
downloaddiscord.py-f308f34db1b1c24178fbdb1756838064cd9e4348.tar.xz
discord.py-f308f34db1b1c24178fbdb1756838064cd9e4348.zip
Add note pointing to discord.AllowedMentions
-rw-r--r--discord/utils.py6
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`