#Removing chosen option from a string select menu

15 messages · Page 1 of 1 (latest)

chilly ember
#

-# this might be a very simple answer, just cant find a solution to it
hence the title, is it possible to remove all options chosen by the user? i have tried deferUpdate as it works with buttons and menus to remove the "loading" state.

one solution is editing the original message but with multiple people using this at a possible short timeframe then ratelimits will be hit, which noone wants.

exotic valeBOT
#
  • 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!
dapper solar
#

The only way to change the options is to edit the component, yes

tall trail
#

you could implement some debouncing if you don't want too many requests though

#

but if each interaction requires different logic that may not be possible

chilly ember
#

i know that bots like sapphire immediately get rid of the selection without editing the message, just wondering how thats actually done

dapper solar
#

ahh no, it would have to be an edit

#

or update

chilly ember
#

just to double check as the documentation isnt rlly clear.

the ratelimit of 50/s is that per endpoint or globally?

covert wharfBOT
#

Ratelimits are dynamically assigned by the API based on current load and may change at any point.

  • The scale from okay to API-spam is sliding and depends heavily on the action you are taking
  • Rainbow roles, clock and counter channels, and DM'ing advertisements to all members are all examples of things that are not okay
tall trail
#

huh it doesn't include that

#

well there's a global one and per endpoint

#

the one you're saying is the global one