From 5932844c5ddee2e0f751f1b8702c2cdfbeae575d Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Tue, 1 Mar 2022 23:05:35 -0500 Subject: feat(HighlightCommand): unrestrict command and disable regex --- src/commands/utilities/highlight-add.ts | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/commands/utilities/highlight-add.ts') diff --git a/src/commands/utilities/highlight-add.ts b/src/commands/utilities/highlight-add.ts index 9c7506e..73c61d2 100644 --- a/src/commands/utilities/highlight-add.ts +++ b/src/commands/utilities/highlight-add.ts @@ -19,16 +19,16 @@ export default class HighlightAddCommand extends BushCommand { optional: !highlightCommandArgs.add[0].required, only: 'text', slashType: false - }, - { - id: 'regex', - description: highlightCommandArgs.add[1].description, - match: 'flag', - flag: '--regex', - prompt: highlightCommandArgs.add[1].description, - only: 'text', - slashType: false } + // { + // id: 'regex', + // description: highlightCommandArgs.add[1].description, + // match: 'flag', + // flag: '--regex', + // prompt: highlightCommandArgs.add[1].description, + // only: 'text', + // slashType: false + // } ], usage: [], examples: [], @@ -43,6 +43,8 @@ export default class HighlightAddCommand extends BushCommand { ) { assert(message.inGuild()); + args.regex = false; + if (!args.regex) { if (args.word.length < 2) return message.util.send(`${util.emojis.error} You can only highlight words that are longer than 2 characters.`); -- cgit