diff options
| author | Nihaal Sangha <[email protected]> | 2021-03-03 00:04:03 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-02 19:04:03 -0500 |
| commit | a3f700c11f72202f6a7710ce07c7144a8b8c947d (patch) | |
| tree | 11671be19992e9dde134eb1b4d652dc5f212b720 /discord/utils.py | |
| parent | Fix typo with guild_discovery_grace_period_final_warning (diff) | |
| download | discord.py-a3f700c11f72202f6a7710ce07c7144a8b8c947d.tar.xz discord.py-a3f700c11f72202f6a7710ce07c7144a8b8c947d.zip | |
Fix references to snowflakes being max 21 long
Diffstat (limited to 'discord/utils.py')
| -rw-r--r-- | discord/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py index 24428c7a..b99bd70b 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -544,4 +544,4 @@ def escape_mentions(text): :class:`str` The text with the mentions removed. """ - return re.sub(r'@(everyone|here|[!&]?[0-9]{17,21})', '@\u200b\\1', text) + return re.sub(r'@(everyone|here|[!&]?[0-9]{17,20})', '@\u200b\\1', text) |