blob: 2861e057bddc49dfdf307f7304c04ea7aafbdb55 [file] [log] [blame]
Samuel Shuert27bf3cd2023-03-03 15:51:25 -05001import { CommandInteraction, SlashCommandBuilder } from "discord.js";
pineafan63fc5e22022-08-04 22:04:10 +01002import { callback as roleMenu } from "../actions/roleMenu.js";
pineafanda6e5342022-07-03 10:03:16 +01003
4const command = new SlashCommandBuilder()
5 .setName("rolemenu")
pineafan63fc5e22022-08-04 22:04:10 +01006 .setDescription("Lets you choose from sets of roles to apply to yourself");
pineafanda6e5342022-07-03 10:03:16 +01007
pineafanbd02b4a2022-08-05 22:01:38 +01008const callback = async (interaction: CommandInteraction): Promise<void> => {
pineafanda6e5342022-07-03 10:03:16 +01009 await roleMenu(interaction);
pineafan63fc5e22022-08-04 22:04:10 +010010};
pineafanda6e5342022-07-03 10:03:16 +010011
pineafanda6e5342022-07-03 10:03:16 +010012export { command };
13export { callback };