Removing chosen option from a string select menu

-# 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.
8 Replies
d.js toolkit
d.js toolkit2d 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!
monbrey
monbrey2d ago
The only way to change the options is to edit the component, yes
Amgelo
Amgelo2d ago
each interaction has its own ratelimits, so you won't get any errors for that 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
⌁ Ky ⌁
⌁ Ky ⌁OP2d ago
i know that bots like sapphire immediately get rid of the selection without editing the message, just wondering how thats actually done
monbrey
monbrey2d ago
ahh no, it would have to be an edit or update
⌁ Ky ⌁
⌁ Ky ⌁OP2d ago
worked it out using this instead, least for now just to double check as the documentation isnt rlly clear. the ratelimit of 50/s is that per endpoint or globally?
d.js docs
d.js docs2d ago
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
Amgelo
Amgelo2d ago
huh it doesn't include that well there's a global one and per endpoint the one you're saying is the global one but interaction replies don't apply to that ratelimit, as I said

Did you find this page helpful?