Skip to content
What does client.on is not a function means?
Profile icon

When y ran my code it says that client.on its not a function, someone can explain me how to solve it? thx

You are viewing a single comment. View All
Profile icon

Your client variable is a Collection, when it should be a Client.

const client = new Discord.Client();