Sword
DIAdiscord.js - Imagine an app
•Created by Sword on 1/9/2024 in #djs-questions
Keep getting error with intents.
So I just started using v14.4.1 i put the new intent code as showed here
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_MEMBERS,
],
});
Despite that. I keep getting this error
/root/Xboxdisc/xbox-discord/xbox.js:7
Intents.FLAGS.GUILDS,
^
TypeError: Cannot read properties of undefined (reading 'FLAGS')
at Object.<anonymous> (/root/Xboxdisc/xbox-discord/xbox.js:7:13)
at Module._compile (node:internal/modules/cjs/loader:1356:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
at Module.load (node:internal/modules/cjs/loader:1197:32)
at Module._load (node:internal/modules/cjs/loader:1013:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:495 replies