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
d.js toolkit
d.js toolkit4mo 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
Egiziano
EgizianoOP4mo ago
Oh.. 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
Want results from more Discord servers?
Add your server