Uncaught DiscordjsError RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS.
Uncaught DiscordjsError RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS.
at resolve (c:\Users\enzo\bot\Authkeybot.js\Nouveau dossier\node_modules\discord.js\src\util\BitField.js:174:11)
at <anonymous> (c:\Users\enzo\bot\Authkeybot.js\Nouveau dossier\node_modules\discord.js\src\util\BitField.js:168:35)
at resolve (c:\Users\enzo\bot\Authkeybot.js\Nouveau dossier\node_modules\discord.js\src\util\BitField.js:168:18)
at BitField (c:\Users\enzo\bot\Authkeybot.js\Nouveau dossier\node_modules\discord.js\src\util\BitField.js:33:38)
at IntentsBitField (c:\Users\enzo\bot\Authkeybot.js\Nouveau dossier\node_modules\discord.js\src\util\IntentsBitField.js:9:1)
at _validateOptions (c:\Users\enzo\bot\Authkeybot.js\Nouveau dossier\node_modules\discord.js\src\client\Client.js:514:25)
at Client (c:\Users\enzo\bot\Authkeybot.js\Nouveau dossier\node_modules\discord.js\src\client\Client.js:80:10)
at <anonymous> (c:\Users\enzo\bot\Authkeybot.js\Nouveau dossier\AuthKeyBot.js:2:16)
at Module._compile (internal/modules/cjs/loader:1376:14)
at Module._extensions..js (internal/modules/cjs/loader:1435:10)
at Module.load (internal/modules/cjs/loader:1207:32)
at Module._load (internal/modules/cjs/loader:1023:12)
at executeUserEntryPoint (internal/modules/run_main:135:12)
at <anonymous> (internal/main/run_main_module:28:49)
4 Replies
- 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!`-- [email protected]
v20.11.0
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
@xx_lavaboy_xx123Dms.