aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev/setLevel.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/dev/setLevel.ts')
-rw-r--r--src/commands/dev/setLevel.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/commands/dev/setLevel.ts b/src/commands/dev/setLevel.ts
index 4f97528..5a702e9 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 { SlashCommandOption } from '../../lib/extensions/BushClientUtil';
import { BushCommand } from '../../lib/extensions/BushCommand';
@@ -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
});
}