#Error while trying to turn the bot online.

7 messages · Page 1 of 1 (latest)

mossy boneBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

lilac walrus
#

discord.js version is 14.9.0
node version is 16.6.0

#
const { Client, IntentsBitField } = require('discord.js');

const client = new Client({
    intents: [
        IntentsBitField.Flags.Guilds,
        IntentsBitField.Flags.GuildMembers,
        IntentsBitField.Flags.GuildMessages,
        IntentsBitField.Flags.MessageContent,
    ],
});

client.on('ready', (c) => {
    console.log(`✅ ${c.user.tag} is online.`);
});


client.login(process.env.TOKEN);```
#

this is the code of index.js

#

I just started creating

raven vigil
#

you need node 16.9 or higher for djs v14

tame nimbusBOT