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.
Report Command Script
Interaction Create Event Script
5 Replies
d.js toolkit
d.js toolkit8mo 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! - Marked as resolved by OP
Amgelo
Amgelo8mo ago
you need to use the second button interaction to update
d.js docs
d.js docs8mo ago
:method: ButtonInteraction#update() Updates the original message of the component on which the interaction was received on.
Amgelo
Amgelo8mo ago
using editReply will not reply to the other second interaction, hence why it shows as failed
Swyftey
SwyfteyOP8mo ago
thank you thank you too
Want results from more Discord servers?
Add your server