From f308f34db1b1c24178fbdb1756838064cd9e4348 Mon Sep 17 00:00:00 2001 From: ChristopherJHart Date: Sun, 4 Oct 2020 22:52:00 -0400 Subject: [PATCH] Add note pointing to discord.AllowedMentions --- discord/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/discord/utils.py b/discord/utils.py index efab59087..39e097d5d 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`