- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- 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
#How to remove choices (mulitple choise stringselect menu)
23 messages · Page 1 of 1 (latest)
they probably are editing the message though. but with interaction.update(...)
can you show what you mean?
looks like interaction.update to me though
but wait, is it really removed from the menu? considering it states you need to select it again to get it back?
there doesn't seem to be anything getting edited
so it's not removed, it's still a choice in that menu
yeah, call .update(), that should do what you want
you don't need to edit the embed. don't pass embeds: in the update call
interaction.update({}); and then interaction.followUp(...) for your reply
deferUpdate(), editReply({}) and followUp(...)
although why defer if you only want to update({}) without content?
just replace the deferReply with the update({})
and your editReply with the followUp
yes. but do the update where you had your deferReply before. So before any async tasks
yes. update is an initial response. after that you have 15 minutes to followUp
Responding to interactions:
#replyimmediately respond with a message#updateimmediately update the original message (buttons, select menus)#showModalimmediately show a modal (cannot be deferred)#deferReply/Updaterespond later (up to 15 minutes)#followUppost an additional message
The initial response has to happen within 3s of receiving the interaction!
because a reply doesn't touch the original message at all
network issue. how many shards are you running on that same machine?
1