π’Select
StringSelectMenuBuilder
import { ApplicationCommandType } from "discord.js";
import { CreateRow, CreateSelect} from "ease-discord-js";
export default {
name: "test",
description: "command to test the library",
type: ApplicationCommandType.ChatInput,
run: async(client, interaction) => {
return interaction.reply({content: "Hello World!", components: [
new CreateRow([
CreateSelect.StringSelectMenuBuilder({customId: "test_select", placeholder: "Select a option",
options: [
{label: "option one", value: 1},
{label: "option two", value: 2},
]
}),
])
]});
}
}
UserSelectMenuBuilder

ChannelSelectMenuBuilder

Last updated