blob: 2861e057bddc49dfdf307f7304c04ea7aafbdb55 [file] [log] [blame]
TheCodedProff86ba092023-01-27 17:10:07 -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 };