Failing to trigger collector

Console Log:
Message component collector created
Collect event handler added
Message component collector created
Collect event handler added
When I click a button discord responds with 'This interaction failed' after 3 seconds. Based on the console logs it seems like the collector is not being triggered. At the very least the filter is never called.
5 Replies
d.js toolkit
d.js toolkit7mo 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 OP
SowerofSystems
SowerofSystemsOP7mo ago
discord.js v14.14.1 node v20.10.0
SowerofSystems
SowerofSystemsOP7mo ago
This script works perfectly on the other hand. I don't know why the other one doesn't.
NyR
NyR7mo ago
You are creating collector on the original message (that triggered the event) you need to create it on the one resolved by message.reply() , which has the components
SowerofSystems
SowerofSystemsOP7mo ago
Thank you. It's always something so simple
Want results from more Discord servers?
Add your server