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

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 =