I’m really new at this and I’m trying to get the bot to come online but no matter what I do the error message comes up, I also downloaded requirejs but it doesn’t seem to be working. basically, I have no idea what I’m doing and need help.
const {Clients, Intents} = require(discord.js);
const TOKEN = 'OTQyMTQ4Mjk4MTEyOTI1NzE3.YggR-g.Kpd9BcpatnkBRYZrpnNvT1b23_A'
const client = new Client({
intents: [
Inents.FLAGS.GUILDS,
Intents.FLags.GUILD_MESSAGES,
]
});
client.once('ready', () => {
console.log('Logged in as ${client.user.tag}')
});
client.login(TOKEN);
>Solution :
You need to put discord.js in quotes like this:
const {Clients, Intents} = require("discord.js");