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
1 changed files with 1 additions and 1 deletions

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