MaxListenersExceededWarning: How do I fix this?

Hi,


What is the solution to these problems?

you have lots of client events for same event like message

I get it, so what’s the solution to the problem?

Use just one event for all things related to that.Like putting all commands in one message event and one ready event.

Sorry, I couldn’t understand what you said.

Sorry, i don’t understand your language.

No Problem, would you explain more to me to solve the problem?

I’m not sure, but I think that they mean you need to have everything in one
Client.On ( “message”, message ==> {
}
thing, with if elses in it.

Here’s an response from a discord server


You are setting more than 11 event listeners on a event. This happended to me when I was piping multiple streams into an object because streams use event emitters