Using a User Select Menu without it returning an error?
I have a file for this command "report" and a file in an events folder for the "interactionCreate" event.
What is the best way to use the select menu and the button I have within these two scripts? So that the target member and reason are known within the event listener? (not sure how else to explain, sorry)
I want the user select menu to return the user to "report" and then I want the button to pull up a modal to enter in the report reason.
Eventually there is supposed to also be a "submit" button, but I'm more worried about this stuff first.
5 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 OPyou need to use the second button interaction to update
:method: ButtonInteraction#update()
Updates the original message of the component on which the interaction was received on.
using editReply will not reply to the other second interaction, hence why it shows as failed
thank you
thank you too