aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config/prefix.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/config/prefix.ts')
-rw-r--r--src/commands/config/prefix.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/config/prefix.ts b/src/commands/config/prefix.ts
index c20cfa5..9ddf81b 100644
--- a/src/commands/config/prefix.ts
+++ b/src/commands/config/prefix.ts
@@ -1,4 +1,3 @@
-import { ApplicationCommandOptionType } from 'discord-api-types';
import { Guild as DiscordGuild, Message } from 'discord.js';
import { SlashCommandOption } from '../../lib/extensions/BushClientUtil';
import { BushCommand } from '../../lib/extensions/BushCommand';
@@ -21,14 +20,15 @@ export default class PrefixCommand extends BushCommand {
usage: 'prefix [prefix]',
examples: ['prefix', 'prefix +']
},
- slashCommandOptions: [
+ slashOptions: [
{
- type: ApplicationCommandOptionType.STRING,
+ type: 'STRING',
name: 'prefix',
description: 'The prefix to set for this server',
required: false
}
- ]
+ ],
+ slash: true
});
}