Fix references to snowflakes being max 21 long

This commit is contained in:
Nihaal Sangha
2021-03-03 00:04:03 +00:00
committed by GitHub
parent d01500bccd
commit a3f700c11f
3 changed files with 6 additions and 6 deletions

View File

@@ -687,7 +687,7 @@ class Webhook(Hashable):
A partial webhook is just a webhook object with an ID and a token.
"""
m = re.search(r'discord(?:app)?.com/api/webhooks/(?P<id>[0-9]{17,21})/(?P<token>[A-Za-z0-9\.\-\_]{60,68})', url)
m = re.search(r'discord(?:app)?.com/api/webhooks/(?P<id>[0-9]{17,20})/(?P<token>[A-Za-z0-9\.\-\_]{60,68})', url)
if m is None:
raise InvalidArgument('Invalid webhook URL given.')
data = m.groupdict()