const select = new StringSelectMenuBuilder() .setCustomId('Select') .setPlaceholder('Make a selection!') .addOptions( new StringSelectMenuOptionBuilder() .setLabel('hmm') .setValue('wassup') ) const row = new ActionRowBuilder() .addComponents(select); return message.channel.send('hi', {components: [row]})
const select = new StringSelectMenuBuilder() .setCustomId('Select') .setPlaceholder('Make a selection!') .addOptions( new StringSelectMenuOptionBuilder() .setLabel('hmm') .setValue('wassup') ) const row = new ActionRowBuilder() .addComponents(select); return message.channel.send('hi', {components: [row]})
When this code runs, my bot only sends "hi" and that's it, no select menu or any component. Can someone help me get the select menu included with the message? Thanks
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
d-Iaa
discord.js - Imagine an app
Support server for discord.js, a Node.js module to interact with Discord's apps API.