Collector.on('collect') not collecting for createMessageComponentCollector.
I'm having trouble figuring out why my bot wont fire on Collector.on('collect'). I tried putting a console.log('test') in there but it's never registering. Any idea how to fix this?
9 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 OPPass
fetchReply: true
to the reply optionto which one
the ones inside the collector?
To your modal submission reply
like this?
Yes
ahhhh that fixed it! thank you so much! can I ask why it's necessary to have fetchReply there?
what does fetchReply do exactly? and would this have been necessary had it not been a modal?
Because the promise returns InteractionResponse which is slightly different than a
Message
, fetchReply makes sure it returns a message, although it should also create a collector on the InteractionResponse (since there is a method in it too), i think that's an issue that needs fixing (I'm not too sure about this)ahhh I understand, thank you so much for the help!