diff --git a/src/utils/command.ts b/src/utils/command.ts index 4e963ee..11fe653 100644 --- a/src/utils/command.ts +++ b/src/utils/command.ts @@ -55,7 +55,9 @@ function parseMention( entry: Args, argsNullable: Array ): void { - const index = argsNullable.findIndex((x) => typeof x === 'string') + const index = argsNullable.findIndex( + (x) => typeof x === 'string' && x.includes('<@!') + ) const regexMatches = MessageMentions.USER_MENTION.exec(argsNullable[index]!) args[entry.name] = regexMatches !== null