I'm using nodejs. My packages are express and discord.js v14.
My code: enter image description here
if I add "MESSAGE_CONTENT" to
const client = new Discord.Client({intents: \["GUILDS", "GUILD_MESSAGES"\]});
I get this error code:
RangeError \[BITFIELD_INVALID\]: Invalid bitfield flag or number: MESSAGE_CONTENT.
at Function.resolve (/home/runner/my-bot-project-2/node_modules/discord.js/src/util/BitField.js:152:11)
at /home/runner/my-bot-project-2/node_modules/discord.js/src/util/BitField.js:147:54
at Array.map (\<anonymous\>)
at Function.resolve (/home/runner/my-bot-project-2/node_modules/discord.js/src/util/BitField.js:147:40)
at Client.\_validateOptions (/home/runner/my-bot-project-2/node_modules/discord.js/src/client/Client.js:550:33)
at new Client (/home/runner/my-bot-project-2/node_modules/discord.js/src/client/Client.js:76:10)
at Object.\<anonymous\> (/home/runner/my-bot-project-2/index.js:5:16)
at Module.\_compile (node:internal/modules/cjs/loader:1198:14)
I tried searching in discord.js guide v14 but didn't find anything.