From 7d621128c3ce70e23a8e8ce4848534a20ca7d240 Mon Sep 17 00:00:00 2001 From: zeromomentum121 <61701181+zeromomentum121@users.noreply.github.com> Date: Thu, 6 May 2021 16:01:25 -0500 Subject: [PATCH] id support for args --- src/utils/command.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/command.ts b/src/utils/command.ts index 64bd821..637662d 100644 --- a/src/utils/command.ts +++ b/src/utils/command.ts @@ -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 =