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
discord.js
After creating a select menu, the chosen default values cannot be updated.
await interaction.deferReply({ ephemeral: true }); // Build the channel menu const channelMenu = new ActionRowBuilder().addComponents( new ChannelSelectMenuBuilder() .setCustomId(`channelMenu`) .setPlaceholder('Select channel') .setMinValues(0) .setMaxValues(1) .setDefaultChannels(channelId), ); // Send initial reply await interaction.editReply({ content: 'foo', components: [channelMenu], ephemeral: true, }); // Modify default channel channelMenu.components[0].data.default_values = [{ id: newChannelId, type: 'channel' }]; // Resend reply await interaction.editReply({ content: 'bar', components: [channelMenu], ephemeral: true, });
Medium (should be fixed soon)
Not applicable
No response
The text was updated successfully, but these errors were encountered:
They update for me, but not on desktop. It's not a discord.js bug.
Sorry, something went wrong.
No branches or pull requests
Which package is this bug report for?
discord.js
Issue description
After creating a select menu, the chosen default values cannot be updated.
Code sample
Versions
Issue priority
Medium (should be fixed soon)
Which partials do you have configured?
Not applicable
Which gateway intents are you subscribing to?
Not applicable
I have tested this issue on a development release
No response
The text was updated successfully, but these errors were encountered: