diff options
Diffstat (limited to 'src/commands/moulberry-bush')
| -rw-r--r-- | src/commands/moulberry-bush/capePerms.ts | 3 | ||||
| -rw-r--r-- | src/commands/moulberry-bush/level.ts | 3 | ||||
| -rw-r--r-- | src/commands/moulberry-bush/rule.ts | 5 |
3 files changed, 4 insertions, 7 deletions
diff --git a/src/commands/moulberry-bush/capePerms.ts b/src/commands/moulberry-bush/capePerms.ts index 49e591a..d1850c8 100644 --- a/src/commands/moulberry-bush/capePerms.ts +++ b/src/commands/moulberry-bush/capePerms.ts @@ -1,5 +1,4 @@ import { Constants } from 'discord-akairo'; -import { ApplicationCommandOptionType } from 'discord-api-types'; import { MessageEmbed } from 'discord.js'; import got from 'got'; import { BushCommand } from '../../lib/extensions/BushCommand'; @@ -62,7 +61,7 @@ export default class CapePermissionsCommand extends BushCommand { { name: 'ign', description: 'The ign of the player you would like to view the capes permissions of.', - type: ApplicationCommandOptionType.STRING, + type: 'STRING', required: true } ] diff --git a/src/commands/moulberry-bush/level.ts b/src/commands/moulberry-bush/level.ts index ea51f94..e37fa2e 100644 --- a/src/commands/moulberry-bush/level.ts +++ b/src/commands/moulberry-bush/level.ts @@ -1,4 +1,3 @@ -import { ApplicationCommandOptionType } from 'discord-api-types'; import { Message, User } from 'discord.js'; import { BushCommand } from '../../lib/extensions/BushCommand'; import { BushSlashMessage } from '../../lib/extensions/BushSlashMessage'; @@ -34,7 +33,7 @@ export default class LevelCommand extends BushCommand { ], slashOptions: [ { - type: ApplicationCommandOptionType.USER, + type: 'USER', name: 'user', description: 'The user to get the level of', required: false diff --git a/src/commands/moulberry-bush/rule.ts b/src/commands/moulberry-bush/rule.ts index 8aec247..3cd9ec6 100644 --- a/src/commands/moulberry-bush/rule.ts +++ b/src/commands/moulberry-bush/rule.ts @@ -1,5 +1,4 @@ import { Argument, Constants } from 'discord-akairo'; -import { ApplicationCommandOptionType } from 'discord-api-types'; import { MessageEmbed, User } from 'discord.js'; import { BushCommand } from '../../lib/extensions/BushCommand'; import { BushMessage } from '../../lib/extensions/BushMessage'; @@ -95,13 +94,13 @@ export default class RuleCommand extends BushCommand { { name: 'rule', description: 'The rule you would you like to have cited', - type: ApplicationCommandOptionType.INTEGER, + type: 'INTEGER', required: false }, { name: 'user', description: 'The user you would like to mention.', - type: ApplicationCommandOptionType.USER, + type: 'USER', required: false } ], |
