id support for args

This commit is contained in:
zeromomentum121 2021-05-06 16:01:25 -05:00 committed by GitHub
parent a25aef6400
commit 7d621128c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,9 +6,9 @@ interface MentionToRegex {
}
const mentionToRegex: MentionToRegex = {
mentionUser: /<@!?(\d{17,19})>/,
mentionRole: /<@&(\d{17,19})>/,
mentionChannel: /<#(\d{17,19})>/
mentionUser: /<@!?(\d{17,19})>|(\d{17,19})/,
mentionRole: /<@&(\d{17,19})>|(\d{17,19})/,
mentionChannel: /<#(\d{17,19})>|(\d{17,19})/
}
export type CommandArgumentMatchTypes =