Button Collector
Hi, I'm making a system that adds people to a club, I got everything, but because I'm new I don't know how to make a button collector. I looked for some of the help videos on Youtube and on the discord.js Website, but nothing.
How i want to look like:
It will send an embed 'zaproszenie' that sends a invitation on the interaction channel. After that there are 3 options.
1: Accept (only the person that was included in the user option can accept)
2. Deny(only the person that was included in the user option can deny)
3. Cancel (only the person that made the interaction can cancel)
If someone accepts, denies or cancels, it will show a proper embed. If someone accepts, it will get a role on the server.
I showed where I want the collector to be on the photo.
I hope someone can help. π
Kind regards,
official
10 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 staffIf someone can make the script, but just to paste it and change the variables, I would be really grateful.
We do not write code for you.
Oh, thanks. I didn't see that.
I'm sorry in that case, I'm new and I don't know where to start so that's why i asked π
How can I do that if a user from the RoleOption 'user' reacted, it does what I write?
I am trying to do do something, but with no result.
How can you can state in the code that if the person clicked on the button was invited in the useroption (βuserβ)?
I already told you, use the user in the interaction
Oh, that makes sense
Iβll do it right now