1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-05 19:57:02 +00:00

Bot: Updated message URL for arguments

This commit is contained in:
diamondburned (Forefront) 2020-05-14 00:19:51 -07:00
parent 5ac262163e
commit c4504808a2

View file

@ -12,7 +12,7 @@ import (
// canary. matches canary MessageURL
// 3 `(\d+)` for guild ID, channel ID and message ID
var Regex = regexp.MustCompile(
`https://(|ptb\.|canary\.)discordapp\.com/channels/(\d+)/(\d+)/(\d+)`,
`https://(ptb\.|canary\.)?discord(?:app)?\.com/channels/(\d+)/(\d+)/(\d+)`,
)
// MessageURL contains info from a MessageURL