blob: dd3cb34fb8afc5b3d7b7b4e6f9bec1fd3d11a6ac [file] [log] [blame]
pineafanda6e5342022-07-03 10:03:16 +01001import { CommandInteraction } from "discord.js";
2import { SlashCommandBuilder } from "@discordjs/builders";
3import { WrappedCheck } from "jshaiku";
pineafan63fc5e22022-08-04 22:04:10 +01004import { callback as roleMenu } from "../actions/roleMenu.js";
pineafanda6e5342022-07-03 10:03:16 +01005
6const command = new SlashCommandBuilder()
7 .setName("rolemenu")
pineafan63fc5e22022-08-04 22:04:10 +01008 .setDescription("Lets you choose from sets of roles to apply to yourself");
pineafanda6e5342022-07-03 10:03:16 +01009
pineafanbd02b4a2022-08-05 22:01:38 +010010const callback = async (interaction: CommandInteraction): Promise<void> => {
pineafanda6e5342022-07-03 10:03:16 +010011 await roleMenu(interaction);
pineafan63fc5e22022-08-04 22:04:10 +010012};
pineafanda6e5342022-07-03 10:03:16 +010013
Skyler Grey11236ba2022-08-08 21:13:33 +010014const check = (_interaction: CommandInteraction, _defaultCheck: WrappedCheck) => {
pineafanda6e5342022-07-03 10:03:16 +010015 return true;
pineafan63fc5e22022-08-04 22:04:10 +010016};
pineafanda6e5342022-07-03 10:03:16 +010017
18export { command };
19export { callback };
20export { check };