mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
Prepare for the discord.com domain rename
This commit is contained in:
@ -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})/?$'
|
||||
)
|
||||
|
Reference in New Issue
Block a user