Is there any benefit from using <ComponentCollector>.removeAllListeners() on the "end" event of it?
Like freeing up memory or increasing performance, or nodejs handles this already?
2 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 OPOh.. I tried to look at the base collector and wondered if there was any handling of this case.
Thanks for pointing this out!
*https://github.com/discordjs/discord.js/blob/48682ad474f73ade52004be039a1fccde4b00fab/packages/discord.js/src/structures/interfaces/Collector.js