I just started with my first discord bot and I am really stuck with this problem. Everytime I write ‘node .’ it gives an error stating this ‘throw new TypeError(‘CLIENT_MISSING_INTENTS’);’can anybody tell me what I need to fix?
That’s all the code I got:
const Discord = require('discord.js');
const bot = new Discord.Client();
const token = 'myToken';
bot.on('ready', () =>{
console.log('This bot is online!');
})
bot.login(token);