Skip to content

Commit

Permalink
allow hooks that still use discordapp
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloqeely committed Jul 27, 2020
1 parent fd71b8b commit 247fac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dhooks/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class Webhook:
The id of the channel the webhook sends messages to.
""" # noqa: W605
URL_REGEX = r'^(?:https?://)?((canary|ptb)\.)?discord\.com/api/webhooks/' \
URL_REGEX = r'^(?:https?://)?((canary|ptb)\.)?discord(?:app)?\.com/api/webhooks/' \
r'(?P<id>[0-9]+)/(?P<token>[A-Za-z0-9\.\-\_]+)/?$'
ENDPOINT = 'https://discord.com/api/webhooks/{id}/{token}'
CDN = r'https://cdn.discordapp.com/avatars/' \
Expand Down

0 comments on commit 247fac5

Please sign in to comment.