aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev/setLevel.ts
diff options
context:
space:
mode:
authorTymanWasTaken <tyman@tyman.tech>2021-06-19 11:31:36 -0600
committerTymanWasTaken <tyman@tyman.tech>2021-06-19 11:31:36 -0600
commit873123996889c824c7d52785b7cf2903372b71a5 (patch)
tree00e811e9e9a43f030d6edc6e67f7064b04e37bc1 /src/commands/dev/setLevel.ts
parentd055e0dbb86ef7fd4ee96a1531b51181e825fb4b (diff)
downloadtanzanite-873123996889c824c7d52785b7cf2903372b71a5.tar.gz
tanzanite-873123996889c824c7d52785b7cf2903372b71a5.tar.bz2
tanzanite-873123996889c824c7d52785b7cf2903372b71a5.zip
fix: Use latest features of akairo fork
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 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
});
}