blob: c1ceb2e4844009fda1cf714cb3181de839720869 [file] [log] [blame]
PineaFan64486c42022-12-28 09:21:04 +00001import type { CommandInteraction } from "discord.js";
pineafanda6e5342022-07-03 10:03:16 +01002import { SlashCommandBuilder } from "@discordjs/builders";
pineafan63fc5e22022-08-04 22:04:10 +01003import { callback as roleMenu } from "../actions/roleMenu.js";
pineafanda6e5342022-07-03 10:03:16 +01004
5const command = new SlashCommandBuilder()
6 .setName("rolemenu")
pineafan63fc5e22022-08-04 22:04:10 +01007 .setDescription("Lets you choose from sets of roles to apply to yourself");
pineafanda6e5342022-07-03 10:03:16 +01008
pineafanbd02b4a2022-08-05 22:01:38 +01009const callback = async (interaction: CommandInteraction): Promise<void> => {
pineafanda6e5342022-07-03 10:03:16 +010010 await roleMenu(interaction);
pineafan63fc5e22022-08-04 22:04:10 +010011};
pineafanda6e5342022-07-03 10:03:16 +010012
PineaFan0d06edc2023-01-17 22:10:31 +000013const check = () => {
pineafanda6e5342022-07-03 10:03:16 +010014 return true;
pineafan63fc5e22022-08-04 22:04:10 +010015};
pineafanda6e5342022-07-03 10:03:16 +010016
17export { command };
18export { callback };
19export { check };