Intents.

Same problem as before the what is the code for intents because when I do it with caps it throws and error and when I do it without caps it throws an error and when I do it with s it throws and error AND WHEN I DO IT WITHOUT S IT THROWS AN ERROORRRRRRR
5 Replies
d.js toolkit
d.js toolkit7mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Sp4rkleGl!tch
Sp4rkleGl!tchOP7mo ago
No description
Sp4rkleGl!tch
Sp4rkleGl!tchOP7mo ago
No description
Sp4rkleGl!tch
Sp4rkleGl!tchOP7mo ago
No description
Sp4rkleGl!tch
Sp4rkleGl!tchOP7mo ago
const { Client, Events, GatewayIntentsBits } = require('discord.js');
const { token } = require('./config.json');

const client = new Client({ intents: [GatewayIntentsBits.GUILD] });

client.once(Events.ClientReady, readyClient => {
console.log(`Ready! Logged in as ${readyClient.user.tag}`);
});

client.login(token);
const { Client, Events, GatewayIntentsBits } = require('discord.js');
const { token } = require('./config.json');

const client = new Client({ intents: [GatewayIntentsBits.GUILD] });

client.once(Events.ClientReady, readyClient => {
console.log(`Ready! Logged in as ${readyClient.user.tag}`);
});

client.login(token);
Want results from more Discord servers?
Add your server