We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
Example of a menu creation
client.on(Events.InteractionCreate, async (interaction) => { if (!interaction.isCommand()) return; const stringSelect = new StringSelectMenuBuilder() .addOptions( new StringSelectMenuOptionBuilder() .setLabel("test") .setValue("test") .setDescription("test") ) .setCustomId("test") .setPlaceholder("Select an option") .setMinValues(1) .setMaxValues(1); const row1 = new ActionRowBuilder().addComponents(stringSelect); const response = await interaction.reply({ content: "Select oen from below", components: [row1], ephemeral: true, }); const collector = response.createMessageComponentCollector({ componentType: ComponentType.StringSelect, max: 1, time: 60000, }); collector.on("collect", async (i) => { response.edit({ components: [] }); i.reply({ content: `You selected ${i.values[0]}`, ephemeral: true }); }); });
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: