Samuel Shuert | 27bf3cd | 2023-03-03 15:51:25 -0500 | [diff] [blame^] | 1 | import { CommandInteraction, SlashCommandBuilder } from "discord.js"; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 2 | import { callback as roleMenu } from "../actions/roleMenu.js"; |
pineafan | da6e534 | 2022-07-03 10:03:16 +0100 | [diff] [blame] | 3 | |
| 4 | const command = new SlashCommandBuilder() |
| 5 | .setName("rolemenu") |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 6 | .setDescription("Lets you choose from sets of roles to apply to yourself"); |
pineafan | da6e534 | 2022-07-03 10:03:16 +0100 | [diff] [blame] | 7 | |
pineafan | bd02b4a | 2022-08-05 22:01:38 +0100 | [diff] [blame] | 8 | const callback = async (interaction: CommandInteraction): Promise<void> => { |
pineafan | da6e534 | 2022-07-03 10:03:16 +0100 | [diff] [blame] | 9 | await roleMenu(interaction); |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 10 | }; |
pineafan | da6e534 | 2022-07-03 10:03:16 +0100 | [diff] [blame] | 11 | |
pineafan | da6e534 | 2022-07-03 10:03:16 +0100 | [diff] [blame] | 12 | export { command }; |
| 13 | export { callback }; |