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

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

Voters
Profile icon
BautistaRocha1
Comments
hotnewtop
Profile icon
SixBeeps

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

const client = new Discord.Client();