ERROR :(

/data/data/com.linux/files/home/Bot/index.js:5 const client = new Client({ intents: [Intents.FLAGS.GUILDS] }); ^ TypeError: Cannot read properties of undefined (reading 'FLAGS') at Object.<anonymous> (/data/data/com.termux/files/home/Malak/index.js:5:47) at Module._compile (node:internal/modules/cjs/loader:1378:14) at Module._extensions..js (node:internal/modules/cjs/loader:1437:10) at Module.load (node:internal/modules/cjs/loader:1212:32) at Module._load (node:internal/modules/cjs/loader:1028:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:142:12) at node:internal/main/run_main_module:28:49 Node.js v21.6.2 Please help 🙏🏻
3 Replies
d.js toolkit
d.js toolkit8mo 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
chewie
chewie8mo ago
discord.js Guide
Imagine a guide... that explores the many possibilities for your discord.js bot.
Dévil
DévilOP8mo ago
It's solved 🙂 thnx for 🫶🏻
Want results from more Discord servers?
Add your server