mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Fix references to snowflakes being max 21 long
This commit is contained in:
1 parent
d01500bccd
commit
a3f700c11f
3 files changed
+6
-6
No files matched your search
+1
-1
@@ -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)
|
||||
Reference in new issue
Block a user