#How to remove choices (mulitple choise stringselect menu)

23 messages · Page 1 of 1 (latest)

autumn haloBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • 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
bright jewel
#

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

meager gateBOT
#

Responding to interactions:

  • #reply immediately respond with a message
  • #update immediately update the original message (buttons, select menus)
  • #showModal immediately show a modal (cannot be deferred)
  • #deferReply/Update respond later (up to 15 minutes)
  • #followUp post an additional message

The initial response has to happen within 3s of receiving the interaction!

bright jewel
#

because a reply doesn't touch the original message at all

umbral helm
#

i get this error sometimes

#

not in connection with before

bright jewel
#

network issue. how many shards are you running on that same machine?

umbral helm
#

1