"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 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.
glitchdetected1
glitchdetected1OP2y ago
its is Node.js v18.16.1 @d.js toolkit
Squid
Squid2y ago
On the dev branch, the intent is currently named Guilds
glitchdetected1
glitchdetected1OP2y ago
glitchdetected1
glitchdetected1OP2y ago
what do you mean?
Squid
Squid2y ago
You're not using the "dev release" of discord.js like your tag says, are you?
glitchdetected1
glitchdetected1OP2y ago
no
Squid
Squid2y ago
Your code needs to use code matching the same discord.js version as the one outputted by the command that Qjuh recommended
glitchdetected1
glitchdetected1OP2y ago
alright
Zaxee
Zaxee2y ago
Bro why did you mention the bot 😭
Youssef
Youssef2y ago
lol
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?