#Stop the interaction to the same user

8 messages · Page 1 of 1 (latest)

pallid gulch
#

Hey i create a command where people can interact with button but when they put two times the commands and interact with the second, they also intercat with the first. So i want to stop the interaction collector when the same user ask for the same command how can i do it ?

left shore
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

pallid gulch
urban duneBOT
#

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(…)
pallid gulch
#

how can i get the message of my interaction ?

#

like this ?

rigid kraken
#

yes