why am I getting those errors?

all I have in code is this:
const { Client, GatewayIntentBits } = require('discord.js');

const intents = new GatewayIntentBits([
    'GUILDS',
    'GUILD_MESSAGES',
]);

const client = new Client({ intents });

client.once('ready', () => {
    console.log(`Logged in as ${client.user.tag}`);
});

client.login('token');
image.png
Was this page helpful?