Reaction on message based logic.

Hello! I'm new to discord js, and i'm lost on what i "need". Would love some guidance/links to a guid/docs that can help me. So what i have today is a /apply command, you fill in a modal, and the bot will create an embed to admins for review. Today if a user is accepted, admins manually give them a role, if not they will right-click and delete the embed. I would like to add the abillity for admins to react with ✅ to accept a user and give that user a role, and the bot should move the embed to "accepted chat". And if an admin reacts with ❎ the embed should simply be deleted. How can i make this, and what is it i need to study?
3 Replies
d.js toolkit
d.js toolkit16mo 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!
Parogo_72
Parogo_7216mo ago
Use buttons And listen to the interactionCreate event when the button is clicked Check the customId and do whatever you need
Xirez
XirezOP16mo ago
Alright, thank you! I'll look into that now! 🙂
Want results from more Discord servers?
Add your server