diff options
| author | Rapptz <[email protected]> | 2017-08-22 17:52:10 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-08-22 17:52:10 -0400 |
| commit | e7d308544526d8e36bea99e819f95a81b1b3ce09 (patch) | |
| tree | 3d145f8df3e13777995392393def50526d229282 | |
| parent | Fix docstring (diff) | |
| download | discord.py-e7d308544526d8e36bea99e819f95a81b1b3ce09.tar.xz discord.py-e7d308544526d8e36bea99e819f95a81b1b3ce09.zip | |
Webhook URLs can have dashes and underscores.
| -rw-r--r-- | discord/webhook.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/webhook.py b/discord/webhook.py index e1b62c21..811b0b60 100644 --- a/discord/webhook.py +++ b/discord/webhook.py @@ -406,7 +406,7 @@ class Webhook: The URL is invalid. """ - m = re.search(r'discordapp.com/api/webhooks/(?P<id>[0-9]{17,21})/(?P<token>[A-Za-z0-9\.]{60,68})', url) + m = re.search(r'discordapp.com/api/webhooks/(?P<id>[0-9]{17,21})/(?P<token>[A-Za-z0-9\.\-\_]{60,68})', url) if m is None: raise InvalidArgument('Invalid webhook URL given.') return cls(m.groupdict(), adapter=adapter) |