blob: f53e10afe46ea862a927f37d32507603386587e1 [file] [log] [blame]
pineafanda6e5342022-07-03 10:03:16 +01001import { CommandInteraction } from "discord.js";
2import { SlashCommandBuilder } from "@discordjs/builders";
3import { WrappedCheck } from "jshaiku";
4import { callback as roleMenu } from "../automations/roleMenu.js"
5
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 };