Max Event Listeners
Hello, quick question. In my discord bot, I have several modules where some of them use a seperate ready event file. I'm now experiencing an issue where I reached the max amount of listeners, but I really do need the seperate ready event file for organization.
If I decide to continue with the ready event file, is there a way to set the maximum listeners to around 12, instead of the default 10? Also, would that be bad for the bot, or would I be just fine?
Thanks in advance!
1 Reply
- 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