blob: 1a5f2971ddc722cc971dd9f677f1a88ebe2f7a43 [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
10const callback = async (interaction: CommandInteraction): Promise<any> => {
11 await roleMenu(interaction);
pineafan63fc5e22022-08-04 22:04:10 +010012};
pineafanda6e5342022-07-03 10:03:16 +010013
14const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
15 return true;
pineafan63fc5e22022-08-04 22:04:10 +010016};
pineafanda6e5342022-07-03 10:03:16 +010017
18export { command };
19export { callback };
20export { check };