Skip to content
Advertisement

Trying to make discord bot but when i attempt to use ‘node .’ I get a client error

I am trying to create a discord bot and when i try to run “node .” in cmd after creating the code for the bot in visual studio code, I get an error message about the Client missing intents. Here is the error message.

JavaScript

My code is as follows: (the ‘x’ are the bots clientID)

JavaScript

Advertisement

Answer

It’s a new issue that was not in discord v12

you could use this

JavaScript

OR

change discord to version 12

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement