I'm on node version 16.9.1 and Discord.js 13.1.0, I am coding on VSC this is my code:
const { Client, Intents } = require('discord.js');
const { token } = require('./config.json');
const client = new Discord.Client({ intents: ["GUILDS", "GUILD_MESSAGES"] });
client.once('ready', () => {
console.log('started');
});
client.login(token)
When I tried to start my bot with node . or node main.js it is supposed to output "started" in the console however it does nothing and gives me an error instead. Here is the error: