I decided to take a short look into Discord Bots and I have this Problem [closed]
Try changing it to this code:
const Discord = require("discord.js");
const config = require("./config.json");
const intents = new Discord.Intents(32767);
const client = new Discord.Client({intents});
client.login(config.BOT_TOKEN);
and make sure in config.json there is a BotToken key.
new Discord.Intents(32767)
sets your bot to use all the intents, you should choose the intents you need in this page and change the 32767
for the number you get.