Role Select Menu not clearing/refreshing?

I swear it was working before. The input will not clear. Once the "next-button" is clicked, the message should update and the select menu should not display the previous inputs. The page number is correct and the data to set/display for the role select menu is correct as well.
case "next-button": {
if (currentConfig.index < info.pages.length-1) {
currentConfig.index += 1
currentConfig.page = info.pages[currentConfig.index]

await component.update({
embeds: [embeds.embed({
title: currentConfig.page.embed.title,
color: currentConfig.page.embed.color,
fields: currentConfig.page.embed.fields
})],
components: await setComponents(currentConfig)
});
}
break;
}
case "next-button": {
if (currentConfig.index < info.pages.length-1) {
currentConfig.index += 1
currentConfig.page = info.pages[currentConfig.index]

await component.update({
embeds: [embeds.embed({
title: currentConfig.page.embed.title,
color: currentConfig.page.embed.color,
fields: currentConfig.page.embed.fields
})],
components: await setComponents(currentConfig)
});
}
break;
}
5 Replies
d.js toolkit
d.js toolkit7mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Syjalo
Syjalo7mo ago
discord.js can't control what Discord shows in the app
Swyftey
SwyfteyOP7mo ago
I see. So there's no way to clear/reset the select menu (to show the placeholder) after
component.update()
component.update()
?
Syjalo
Syjalo7mo ago
There never was official documented way to clear selected options. Looks like Discord decided it's a bug and updating no longer clear the options
Swyftey
SwyfteyOP7mo ago
Ok, thank you.
Want results from more Discord servers?
Add your server