diff options
Diffstat (limited to 'src/commands/utilities')
-rw-r--r-- | src/commands/utilities/highlight-!.ts | 15 | ||||
-rw-r--r-- | src/commands/utilities/highlight-add.ts | 20 |
2 files changed, 18 insertions, 17 deletions
diff --git a/src/commands/utilities/highlight-!.ts b/src/commands/utilities/highlight-!.ts index dd6da8d..0531cfd 100644 --- a/src/commands/utilities/highlight-!.ts +++ b/src/commands/utilities/highlight-!.ts @@ -17,13 +17,13 @@ export const highlightCommandArgs: { retry: '{error} Enter a valid word.', type: ApplicationCommandOptionType.String, required: true - }, - { - name: 'regex', - description: 'Should the word be matched using regular expression?', - type: ApplicationCommandOptionType.Boolean, - required: false } + // { + // name: 'regex', + // description: 'Should the word be matched using regular expression?', + // type: ApplicationCommandOptionType.Boolean, + // required: false + // } ], remove: [ { @@ -104,8 +104,7 @@ export default class HighlightCommand extends BushCommand { slash: true, channel: 'guild', clientPermissions: (m) => util.clientSendAndPermCheck(m), - userPermissions: [], - superUserOnly: true + userPermissions: [] }); } 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.`); |