diff options
Diffstat (limited to 'src/commands/dev')
-rw-r--r-- | src/commands/dev/reload.ts | 8 | ||||
-rw-r--r-- | src/commands/dev/setLevel.ts | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/commands/dev/reload.ts b/src/commands/dev/reload.ts index 3194ce2..4d6cc23 100644 --- a/src/commands/dev/reload.ts +++ b/src/commands/dev/reload.ts @@ -1,5 +1,4 @@ import { stripIndent } from 'common-tags'; -import { ApplicationCommandOptionType } from 'discord-api-types'; import { Message } from 'discord.js'; import { BushCommand } from '../../lib/extensions/BushCommand'; import { BushInteractionMessage } from '../../lib/extensions/BushInteractionMessage'; @@ -24,14 +23,15 @@ export default class ReloadCommand extends BushCommand { ], ownerOnly: true, typing: true, - slashCommandOptions: [ + slashOptions: [ { - type: ApplicationCommandOptionType.BOOLEAN, + type: 'BOOLEAN', name: 'fast', description: 'Wheather to use esbuild for fast compiling or not', required: false } - ] + ], + slash: true }); } diff --git a/src/commands/dev/setLevel.ts b/src/commands/dev/setLevel.ts index 7401699..83545b2 100644 --- a/src/commands/dev/setLevel.ts +++ b/src/commands/dev/setLevel.ts @@ -1,4 +1,3 @@ -import { ApplicationCommandOptionType } from 'discord-api-types'; import { Message, User } from 'discord.js'; import { BushCommand } from '../../lib/extensions/BushCommand'; import { BushInteractionMessage } from '../../lib/extensions/BushInteractionMessage'; @@ -35,20 +34,21 @@ export default class SetLevelCommand extends BushCommand { } ], ownerOnly: true, - slashCommandOptions: [ + slashOptions: [ { - type: ApplicationCommandOptionType.USER, + type: 'USER', name: 'user', description: 'The user to change the level of', required: true }, { - type: ApplicationCommandOptionType.INTEGER, + type: 'INTEGER', name: 'level', description: 'The level to set the user to', required: true } - ] + ], + slash: true }); } |