pineafan | da6e534 | 2022-07-03 10:03:16 +0100 | [diff] [blame] | 1 | import { CommandInteraction } from "discord.js"; |
| 2 | import { SlashCommandBuilder } from "@discordjs/builders"; |
| 3 | import { WrappedCheck } from "jshaiku"; |
| 4 | import { callback as roleMenu } from "../automations/roleMenu.js" |
| 5 | |
| 6 | const command = new SlashCommandBuilder() |
| 7 | .setName("rolemenu") |
| 8 | .setDescription("Lets you choose from sets of roles to apply to yourself") |
| 9 | |
| 10 | const callback = async (interaction: CommandInteraction): Promise<any> => { |
| 11 | await roleMenu(interaction); |
| 12 | } |
| 13 | |
| 14 | const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => { |
| 15 | return true; |
| 16 | } |
| 17 | |
| 18 | export { command }; |
| 19 | export { callback }; |
| 20 | export { check }; |