can someone help fix this? im using the latest discord.js

C:\Program Files\nodejs\node.exe .\bot.js Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'FLAGS') at <anonymous> (c:\Users\admin\Downloads\bot.js:6:17) at Module._compile (internal/modules/cjs/loader:1256:14) at Module._extensions..js (internal/modules/cjs/loader:1310:10) at Module.load (internal/modules/cjs/loader:1119:32) at Module._load (internal/modules/cjs/loader:960:12) at executeUserEntryPoint (internal/modules/run_main:81:12) at <anonymous> (internal/main/run_main_module:23:47) bot.js:6 Process exited with code 1
2 Replies
d.js toolkit
d.js toolkit2y ago
• 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.
d.js docs
d.js docs2y ago
Tag suggestion for @drupification: RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined - All SCREAMING_SNAKE_CASE enums have been changed to PascalCase - Intents: Intents.FLAGS.GUILD_MESSAGES -> GatewayIntentBits.GuildMessages - Permissions: Permissions.FLAGS.SEND_MESSAGES -> PermissionFlagsBits.SendMessages
Want results from more Discord servers?
Add your server