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

Did you find this page helpful?