blob: 39e18f7b433a13d0771ef4278896af276f8f3b5d [file] [log] [blame]
pineafanda6e5342022-07-03 10:03:16 +01001import { CommandInteraction } from "discord.js";
2import { SlashCommandBuilder } from "@discordjs/builders";
3import { WrappedCheck } from "jshaiku";
pineafan73a7c4a2022-07-24 10:38:04 +01004import { callback as roleMenu } from "../actions/roleMenu.js"
pineafanda6e5342022-07-03 10:03:16 +01005
6const command = new SlashCommandBuilder()
7 .setName("rolemenu")
8 .setDescription("Lets you choose from sets of roles to apply to yourself")
9
10const callback = async (interaction: CommandInteraction): Promise<any> => {
11 await roleMenu(interaction);
12}
13
14const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
15 return true;
16}
17
18export { command };
19export { callback };
20export { check };