How to reset select menu placeholder after an option is selected

im trying to something like a menu that ppl do with discohook, but with a discord bot instead and i couldnt get the bot to reset the menu to its placeholder text after an option is selected, it keeps stuck on the option that was chosen last. couldnt find a proper solution googling it,
No description
4 Replies
d.js toolkit
d.js toolkit5d 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
Булочка | pasha_boez
Update message w/o updates. For example: <MessageComponentInteraction>.update({}) or <Message>.edit({})
d.js docs
d.js docs5d ago
:method: MessageComponentInteraction#update() [email protected] Updates the original message of the component on which the interaction was received on.
// Remove the components from the message
interaction.update({
content: "A component interaction was received",
components: []
})
.then(console.log)
.catch(console.error);
// Remove the components from the message
interaction.update({
content: "A component interaction was received",
components: []
})
.then(console.log)
.catch(console.error);
:method: Message#edit() [email protected] Edits the content of the message.
// Update the content of a message
message.edit('This is my new content!')
.then(msg => console.log(`Updated the content of a message to ${msg.content}`))
.catch(console.error);
// Update the content of a message
message.edit('This is my new content!')
.then(msg => console.log(`Updated the content of a message to ${msg.content}`))
.catch(console.error);
Blazing
BlazingOP5d ago
works, thanks

Did you find this page helpful?