diff options
author | TymanWasTaken <tyman@tyman.tech> | 2021-06-19 11:31:36 -0600 |
---|---|---|
committer | TymanWasTaken <tyman@tyman.tech> | 2021-06-19 11:31:36 -0600 |
commit | 873123996889c824c7d52785b7cf2903372b71a5 (patch) | |
tree | 00e811e9e9a43f030d6edc6e67f7064b04e37bc1 /src/commands/moulberry-bush/capePerms.ts | |
parent | d055e0dbb86ef7fd4ee96a1531b51181e825fb4b (diff) | |
download | tanzanite-873123996889c824c7d52785b7cf2903372b71a5.tar.gz tanzanite-873123996889c824c7d52785b7cf2903372b71a5.tar.bz2 tanzanite-873123996889c824c7d52785b7cf2903372b71a5.zip |
fix: Use latest features of akairo fork
Diffstat (limited to 'src/commands/moulberry-bush/capePerms.ts')
-rw-r--r-- | src/commands/moulberry-bush/capePerms.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/moulberry-bush/capePerms.ts b/src/commands/moulberry-bush/capePerms.ts index 7eb90c5..42e0d77 100644 --- a/src/commands/moulberry-bush/capePerms.ts +++ b/src/commands/moulberry-bush/capePerms.ts @@ -1,4 +1,3 @@ -import { ApplicationCommandOptionType } from 'discord-api-types'; import { Message, MessageEmbed } from 'discord.js'; import got from 'got'; import { BushCommand } from '../../lib/extensions/BushCommand'; @@ -64,14 +63,15 @@ export default class CapePermissionsCommand extends BushCommand { ], clientPermissions: ['EMBED_LINKS', 'SEND_MESSAGES'], channel: 'guild', - slashCommandOptions: [ + slashOptions: [ { - type: ApplicationCommandOptionType.STRING, + type: 'STRING', name: 'user', description: 'The username of the player to see the cape permissions of', required: true } - ] + ], + slash: true }); } private async getResponse(user: string): Promise<{ content?: string; embeds?: MessageEmbed[] }> { |