i just started to write a Discord.js Bot bun ran into a problem after trying to log in. The Error: throw new DiscordjsRangeError(ErrorCodes.BitFieldInvalid, bit); RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS. code: 'BitFieldInvalid'
Im not super familiar with JS so I dont really understand the error. I've checke and the token is correct... Thanks!
const Discord = require("discord.js");
const config = require("./config.json");
const client = new Discord.Client({ intents: ["GUILDS", "GUILD_MESSAGES"] });
client.login(config.BOT_TOKEN);