blob: 8566966b0e32042bcccab4cb23260089d072817c [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 Grey75ea9172022-08-06 10:22:23 +010014const check = (
15 _interaction: CommandInteraction,
16 _defaultCheck: WrappedCheck
17) => {
pineafanda6e5342022-07-03 10:03:16 +010018 return true;
pineafan63fc5e22022-08-04 22:04:10 +010019};
pineafanda6e5342022-07-03 10:03:16 +010020
21export { command };
22export { callback };
23export { check };