From c3cc16b43b39e0b04ebdb9da82df4ecfa4056dc7 Mon Sep 17 00:00:00 2001 From: DAzVise Date: Mon, 27 Jul 2020 21:53:37 +0300 Subject: [PATCH] Don't exceed char limit --- dhooks/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhooks/client.py b/dhooks/client.py index 60323c5..c577c8b 100644 --- a/dhooks/client.py +++ b/dhooks/client.py @@ -115,8 +115,8 @@ class Webhook: The id of the channel the webhook sends messages to. """ # noqa: W605 - URL_REGEX = r'^(?:https?://)?((canary|ptb)\.)?discord(?:app)?\.com/api/webhooks/' \ - r'(?P[0-9]+)/(?P[A-Za-z0-9\.\-\_]+)/?$' + URL_REGEX = r'^(?:https?://)?((canary|ptb)\.)?discord(?:app)?\.com/api/' \ + r'webhooks/(?P[0-9]+)/(?P[A-Za-z0-9\.\-\_]+)/?$' ENDPOINT = 'https://discord.com/api/webhooks/{id}/{token}' CDN = r'https://cdn.discordapp.com/avatars/' \ r'{0.id}/{0.default_avatar}.{1}?size={2}'