mirror of https://github.com/clickscodes/nucleus
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
35 lines
1.1 KiB
import { CommandInteraction, MessageActionRow, MessageButton } from "discord.js";
|
|
import { SlashCommandBuilder } from "@discordjs/builders";
|
|
import { WrappedCheck } from "jshaiku";
|
|
|
|
const command = new SlashCommandBuilder()
|
|
.setName("createtestbutton")
|
|
.setDescription("creates a test button") // TODO: remove for release
|
|
|
|
const callback = (interaction: CommandInteraction) => {
|
|
interaction.reply({components: [new MessageActionRow().addComponents([
|
|
new MessageButton()
|
|
.setCustomId("createticket")
|
|
.setLabel("Create Ticket")
|
|
.setStyle("PRIMARY")
|
|
.setDisabled(false),
|
|
new MessageButton()
|
|
.setCustomId("verifybutton")
|
|
.setLabel("Verify")
|
|
.setStyle("PRIMARY")
|
|
.setDisabled(false),
|
|
new MessageButton()
|
|
.setCustomId("rolemenu")
|
|
.setLabel("Get roles")
|
|
.setStyle("PRIMARY")
|
|
.setDisabled(false)
|
|
])]});
|
|
}
|
|
|
|
const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
|
|
return true;
|
|
}
|
|
|
|
export { command };
|
|
export { callback };
|
|
export { check }; |