Failing to trigger collector
Console Log:
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
- 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 OPdiscord.js v14.14.1
node v20.10.0
This script works perfectly on the other hand. I don't know why the other one doesn't.
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 componentsThank you. It's always something so simple