"BitFieldInvalid" error

I keep getting the "BitFieldInvalid" error. It says throw new DiscordjsRangeError(ErrorCodes.BitFieldInvalid, bit); ^ RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS.
12 Replies
d.js toolkit
d.js toolkitā€¢16mo 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.
ghehusbcbrhjrjxnnxnnxnx
its is Node.js v18.16.1 @d.js toolkit
Squid
Squidā€¢16mo ago
On the dev branch, the intent is currently named Guilds
ghehusbcbrhjrjxnnxnnxnx
what do you mean?
Squid
Squidā€¢16mo ago
You're not using the "dev release" of discord.js like your tag says, are you?
ghehusbcbrhjrjxnnxnnxnx
no
Squid
Squidā€¢16mo ago
Your code needs to use code matching the same discord.js version as the one outputted by the command that Qjuh recommended
ghehusbcbrhjrjxnnxnnxnx
alright
Zaxee
Zaxeeā€¢16mo ago
Bro why did you mention the bot šŸ˜­
Youssef
Youssefā€¢16mo ago
lol
Unknown User
Unknown Userā€¢16mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server