blob: 9aad543564c51bdf4ded4aed869b6485cc7b2ca9 [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
PineaFan64486c42022-12-28 09:21:04 +000013const check = (_interaction: CommandInteraction) => {
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 };