blob: c04e13da7d5e76ad2bd5c836ae45473307b896ae [file] [log] [blame]
pineafanad54d752022-04-18 19:01:43 +01001import { CommandInteraction, MessageActionRow, MessageButton } from "discord.js";
2import { SlashCommandBuilder } from "@discordjs/builders";
3import { WrappedCheck } from "jshaiku";
4
5const command = new SlashCommandBuilder()
6 .setName("createtestbutton")
pineafan0a2cd592022-07-25 17:38:02 +01007 .setDescription("creates a test button") // TODO: remove for release
pineafanad54d752022-04-18 19:01:43 +01008
9const callback = (interaction: CommandInteraction) => {
10 interaction.reply({components: [new MessageActionRow().addComponents([
11 new MessageButton()
12 .setCustomId("createticket")
13 .setLabel("Create Ticket")
14 .setStyle("PRIMARY")
15 .setDisabled(false),
16 new MessageButton()
17 .setCustomId("verifybutton")
18 .setLabel("Verify")
19 .setStyle("PRIMARY")
20 .setDisabled(false),
21 new MessageButton()
22 .setCustomId("rolemenu")
23 .setLabel("Get roles")
24 .setStyle("PRIMARY")
25 .setDisabled(false)
26 ])]});
27}
28
29const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
30 return true;
31}
32
33export { command };
34export { callback };
35export { check };