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
No description
10 Replies
d.js toolkit
d.js toolkitβ€’5mo 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 staff
officialdatch
officialdatchβ€’5mo ago
If someone can make the script, but just to paste it and change the variables, I would be really grateful.
chewie
chewieβ€’5mo ago
We do not write code for you.
d.js docs
d.js docsβ€’5mo ago
:guide: Message Components: Component interactions - Component collectors read more
officialdatch
officialdatchβ€’5mo ago
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.
officialdatch
officialdatchβ€’5mo ago
No description
officialdatch
officialdatchβ€’5mo ago
How can you can state in the code that if the person clicked on the button was invited in the useroption (β€˜userβ€˜)?
Amgelo
Amgeloβ€’5mo ago
I already told you, use the user in the interaction
d.js docs
d.js docsβ€’5mo ago
:property: ButtonInteraction#user The user who created this interaction
officialdatch
officialdatchβ€’5mo ago
Oh, that makes sense I’ll do it right now
Want results from more Discord servers?
Add your server