Hi, I was making a discord bot and when I did ‘node index.js’ (Im in visual studio and somehow fricked up a tutorial) and it came up with this message in the terminal
throw new DiscordjsRangeError(ErrorCodes.BitFieldInvalid, bit);
^
RangeError [BitFieldInvalid]: Invalid bitfield flag or number: Guildmembers.
at IntentsBitField.resolve (C:\Users\Gamer\Desktop\Guest BOT\node_modules\discord.js\src\util\BitField.js:172:11)
at C:\Users\Gamer\Desktop\Guest BOT\node_modules\discord.js\src\util\BitField.js:167:54
at Array.map (<anonymous>)
at IntentsBitField.resolve (C:\Users\Gamer\Desktop\Guest BOT\node_modules\discord.js\src\util\BitField.js:167:40)
at new BitField (C:\Users\Gamer\Desktop\Guest BOT\node_modules\discord.js\src\util\BitField.js:33:38)
at new IntentsBitField (C:\Users\Gamer\Desktop\Guest BOT\node_modules\discord.js\src\util\IntentsBitField.js:9:1)
at Client._validateOptions (C:\Users\Gamer\Desktop\Guest BOT\node_modules\discord.js\src\client\Client.js:494:25)
at new Client (C:\Users\Gamer\Desktop\Guest BOT\node_modules\discord.js\src\client\Client.js:78:10)
at Object.<anonymous> (C:\Users\Gamer\Desktop\Guest BOT\index.js:5:16)
at Module._compile (node:internal/modules/cjs/loader:1369:14) {
code: 'BitFieldInvalid'
}
Idk what to do, so if someone could help that would be great!
Also, here’s the video link incase someone wants to see it.