aboutsummaryrefslogtreecommitdiff
path: root/src/commands/moulberry-bush/capeperms.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/moulberry-bush/capeperms.ts')
-rw-r--r--src/commands/moulberry-bush/capeperms.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/commands/moulberry-bush/capeperms.ts b/src/commands/moulberry-bush/capeperms.ts
index 7a79666..5b3dc10 100644
--- a/src/commands/moulberry-bush/capeperms.ts
+++ b/src/commands/moulberry-bush/capeperms.ts
@@ -4,6 +4,7 @@ import { CommandInteraction } from 'discord.js';
import { Message } from 'discord.js';
import got from 'got';
import { BotCommand } from '../../lib/extensions/BotCommand';
+import { SlashCommandOption } from '../../lib/extensions/Util';
interface Capeperms {
success: boolean;
@@ -118,8 +119,8 @@ export default class CapePermsCommand extends BotCommand {
public async execSlash(
message: CommandInteraction,
- { user }: { user: string }
+ { user }: { user: SlashCommandOption<string> }
): Promise<void> {
- await message.reply(await this.getResponse(user));
+ await message.reply(await this.getResponse(user.value));
}
}