From a3f700c11f72202f6a7710ce07c7144a8b8c947d Mon Sep 17 00:00:00 2001 From: Nihaal Sangha Date: Wed, 3 Mar 2021 00:04:03 +0000 Subject: Fix references to snowflakes being max 21 long --- discord/webhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/webhook.py') diff --git a/discord/webhook.py b/discord/webhook.py index bdbc8eff..9b22d42c 100644 --- a/discord/webhook.py +++ b/discord/webhook.py @@ -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[0-9]{17,21})/(?P[A-Za-z0-9\.\-\_]{60,68})', url) + m = re.search(r'discord(?:app)?.com/api/webhooks/(?P[0-9]{17,20})/(?P[A-Za-z0-9\.\-\_]{60,68})', url) if m is None: raise InvalidArgument('Invalid webhook URL given.') data = m.groupdict() -- cgit v1.2.3