diff options
author | 2021-10-12 06:36:04 +0530 | |
---|---|---|
committer | 2021-10-12 06:36:04 +0530 | |
commit | 7316463b54eeafef777468db872e81973663d435 (patch) | |
tree | 901e2a17c9375ea5db9328a4bce8a24186c9b9d4 | |
parent | Refactor `shorten_text` utility function (diff) |
Correct discord message link regex
The biggest size a Discord snowflake can be is 20.
Co-authored-by: Bluenix <[email protected]>
-rw-r--r-- | bot/exts/moderation/incidents.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/moderation/incidents.py b/bot/exts/moderation/incidents.py index 4a84d825e..5d2c66d6c 100644 --- a/bot/exts/moderation/incidents.py +++ b/bot/exts/moderation/incidents.py @@ -26,8 +26,8 @@ CRAWL_SLEEP = 2 DISCORD_MESSAGE_LINK_RE = re.compile( r"(https?:\/\/(?:(ptb|canary|www)\.)?discord(?:app)?\.com\/channels\/" - r"[0-9]{15,21}" - r"\/[0-9]{15,21}\/[0-9]{15,21})" + r"[0-9]{15,20}" + r"\/[0-9]{15,20}\/[0-9]{15,20})" ) |