aboutsummaryrefslogtreecommitdiff
path: root/src/commands/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/config')
-rw-r--r--src/commands/config/muteRole.ts3
-rw-r--r--src/commands/config/prefix.ts3
-rw-r--r--src/commands/config/welcomeChannel.ts3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/commands/config/muteRole.ts b/src/commands/config/muteRole.ts
index a354bcc..2dc34c3 100644
--- a/src/commands/config/muteRole.ts
+++ b/src/commands/config/muteRole.ts
@@ -1,4 +1,3 @@
-import { ApplicationCommandOptionType } from 'discord-api-types';
import { Role } from 'discord.js';
import { BushCommand } from '../../lib/extensions/BushCommand';
import { BushMessage } from '../../lib/extensions/BushMessage';
@@ -31,7 +30,7 @@ export default class MuteRoleCommand extends BushCommand {
slash: true,
slashOptions: [
{
- type: ApplicationCommandOptionType.ROLE,
+ type: 'ROLE',
name: 'role',
description: "What would you like to set the server's mute role to?",
required: true
diff --git a/src/commands/config/prefix.ts b/src/commands/config/prefix.ts
index fc7b3bf..b788d17 100644
--- a/src/commands/config/prefix.ts
+++ b/src/commands/config/prefix.ts
@@ -1,4 +1,3 @@
-import { ApplicationCommandOptionType } from 'discord-api-types';
import { BushCommand } from '../../lib/extensions/BushCommand';
import { BushMessage } from '../../lib/extensions/BushMessage';
import { BushSlashMessage } from '../../lib/extensions/BushSlashMessage';
@@ -29,7 +28,7 @@ export default class PrefixCommand extends BushCommand {
slash: true,
slashOptions: [
{
- type: ApplicationCommandOptionType.STRING,
+ type: 'STRING',
name: 'prefix',
description: 'What would you like the new prefix to be?',
required: false
diff --git a/src/commands/config/welcomeChannel.ts b/src/commands/config/welcomeChannel.ts
index 8cab33c..d531c7d 100644
--- a/src/commands/config/welcomeChannel.ts
+++ b/src/commands/config/welcomeChannel.ts
@@ -1,4 +1,3 @@
-import { ApplicationCommandOptionType } from 'discord-api-types';
import { Channel } from 'discord.js';
import { BushCommand } from '../../lib/extensions/BushCommand';
import { BushMessage } from '../../lib/extensions/BushMessage';
@@ -30,7 +29,7 @@ export default class WelcomeChannelCommand extends BushCommand {
slash: true,
slashOptions: [
{
- type: ApplicationCommandOptionType.CHANNEL,
+ type: 'CHANNEL',
name: 'channel',
description: 'What channel would you like me to send welcome messages in?',
required: false