Help me To Fix this Error pls

I am Getting

Blockquote RangeError [BITFIELD_INVALID]: Invalid bitfield flag or number: GUILD_MESSAGE.
at Function.resolve (/home/runner/Discord-Bot-Multipropose/node_modules/discord.js/src/util/BitField.js:152:11)
at /home/runner/Discord-Bot-Multipropose/node_modules/discord.js/src/util/BitField.js:147:54
at Array.map ()
at Function.resolve (/home/runner/Discord-Bot-Multipropose/node_modules/discord.js/src/util/BitField.js:147:40)
at Client._validateOptions (/home/runner/Discord-Bot-Multipropose/node_modules/discord.js/src/client/Client.js:550:33)
at new Client (/home/runner/Discord-Bot-Multipropose/node_modules/discord.js/src/client/Client.js:76:10)
at Object. (/home/runner/Discord-Bot-Multipropose/index.js:13:16)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32) {
[Symbol(code)]: ‘BITFIELD_INVALID’
}
exit status 1

Blockquote
My Code–

const express = require(“express”);

const app = express();

app.listen(3000, () => {

console.log(“Bot is Working!”);

})

app.get("/", (req, res) => {

res.send(“Hello World!”);

})

const Discord = require(“discord.js”);

const client = new Discord.Client({intents: [“GUILDS”, “GUILD_MESSAGE”]});

client.on(“message”, message => {

if(message.content === “ping”) {

message.channel.send(“pong”)

}

})

client.login(process.env.token);

Help me to fix this

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.