Button Collector

Hi I use prefix command for some command. I want just owner click this message button but when I add message.channel.createMessageComponentCollector. More people cant use buton in same channel. How can I make this collector just this command not channel
5 Replies
d.js toolkit
d.js toolkit9mo 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!
Carved
Carved9mo ago
can i see interaction code
d.js docs
d.js docs9mo ago
If you are waiting for button or select menu input from a specific message, don't create the collector on the channel. - Channel collectors return component interactions for any component within that channel.
- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)
- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
Mockir
MockirOP9mo ago
I fix it thanks
Want results from more Discord servers?
Add your server