Prepare for the discord.com domain rename

This commit is contained in:
Rapptz
2020-05-23 21:44:30 -04:00
parent 017591dc9e
commit 66c6be50d8
16 changed files with 33 additions and 33 deletions

View File

@ -194,7 +194,7 @@ class MessageConverter(Converter):
async def convert(self, ctx, argument):
id_regex = re.compile(r'^(?:(?P<channel_id>[0-9]{15,21})-)?(?P<message_id>[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<channel_id>[0-9]{15,21})/(?P<message_id>[0-9]{15,21})/?$'
)