What is the problem

i have a problem in my code
No description
3 Replies
d.js toolkit
d.js toolkit14mo 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 staff
jay
jay14mo ago
GatewayIntentBits isnt a class oh is this already solved i saw #djs-help-v14
Solo™
Solo™14mo ago
Doesn't look like it
const { Client, Intents } = require('discord.js');
const config = require('./config');
const intents = new Intents(3276799);
const bot = new Client({ intents });

bot.login(config.token);

bot.on("ready", async () => {
console.log(`${bot.user.tag}`);
});
const { Client, Intents } = require('discord.js');
const config = require('./config');
const intents = new Intents(3276799);
const bot = new Client({ intents });

bot.login(config.token);

bot.on("ready", async () => {
console.log(`${bot.user.tag}`);
});
right? Handle intents is by using the Intents class, not JoobiShrug
Want results from more Discord servers?
Add your server