How to refresh Select Menu after interaction?
Hello! I'm trying create a role select menu that refreshes after after a selection so that people can select a role and then immeadietly drop that role if they want to. Currently it working so that you have to add another role before you can drop your current role. Here's a video on how it's working right now.
https://cdn.discordapp.com/attachments/891316170165194842/1166375404358078625/Recording_2023-10-23_235148.mp4?ex=654a42be&is=6537cdbe&hm=8216478a1a39f06ab85c5727bf031341333c8a90e77c52c75e0cd58952b22b4f&
Here is the current code that handles the interaction:
And here is the code that I used to send the message to the channel. I would like to keep it so that it is a permanant message in a channel and not one that is recreated with a command or something.
Thanks for any help!
2 Replies
- 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