From 66c6be50d8ac5d401a658c757c5f1ccb454c798b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 23 May 2020 21:44:30 -0400 Subject: Prepare for the discord.com domain rename --- discord/ext/commands/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/ext') diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index 93137cad..3d706bf8 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -194,7 +194,7 @@ class MessageConverter(Converter): async def convert(self, ctx, argument): id_regex = re.compile(r'^(?:(?P[0-9]{15,21})-)?(?P[0-9]{15,21})$') link_regex = re.compile( - r'^https?://(?:(ptb|canary)\.)?discordapp\.com/channels/' + r'^https?://(?:(ptb|canary)\.)?discord(?:app)?\.com/channels/' r'(?:([0-9]{15,21})|(@me))' r'/(?P[0-9]{15,21})/(?P[0-9]{15,21})/?$' ) -- cgit v1.2.3