aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Senjan21 <[email protected]>2020-07-30 18:49:26 +0200
committerGravatar Senjan21 <[email protected]>2020-07-30 18:49:26 +0200
commit873ecb9e11e72b1d62aa288660e0e582038d365e (patch)
tree6c6172b0afacc29fdda07cac437701e724ee52d2
parentMerge pull request #1072 from python-discord/fix/message_pin (diff)
Change regex so it catches new discord URL
-rw-r--r--bot/cogs/webhook_remover.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/webhook_remover.py b/bot/cogs/webhook_remover.py
index 543869215..91bcaa1e9 100644
--- a/bot/cogs/webhook_remover.py
+++ b/bot/cogs/webhook_remover.py
@@ -8,7 +8,7 @@ from bot.bot import Bot
from bot.cogs.moderation.modlog import ModLog
from bot.constants import Channels, Colours, Event, Icons
-WEBHOOK_URL_RE = re.compile(r"((?:https?://)?discordapp\.com/api/webhooks/\d+/)\S+/?", re.I)
+WEBHOOK_URL_RE = re.compile(r"((?:https?://)?discord(app)?\.com/api/webhooks/\d+/)\S+/?", re.I)
ALERT_MESSAGE_TEMPLATE = (
"{user}, looks like you posted a Discord webhook URL. Therefore, your "