GUILDS
intent is not enough to receive messages. You will also need GUILD_MESSAGES
intent for messages:
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES
]
})
More Related Contents:
- Discord bot simple editing its own message gives me error
- How do I fix CLIENT_MISSING_INTENTS error?
- What is the difference between a User and a GuildMember in discord.js?
- Send a message with Discord.js
- message.content doesn’t have any value in Discord.js v14
- message.content doesn’t have any value in Discord.js
- Discord.js v13 code breaks when upgrading to v14
- setPresence activity type in discord.js v14 can only be set to “PLAYING”
- Discord.js – Cooldown for a command for each user not all users
- Checking if a message was sent from a DM not working
- Checking if a message was sent from a DM channel type not working
- Discord.js: Invalid bitfield flag or number: GUILDS
- Fetch more than 100 messages
- What is the difference between setActivity and setPresence?
- Need help for assigning a variable with discord bot command
- SyntaxError: Unexpected token ‘{‘ Discord.js
- None of my discord.js guildmember events are emitting, my user caches are basically empty, and my functions are timing out?
- Why am I getting a ReferenceError: AbortController is not defined in Discord.js v13?
- Discord.js v12 code breaks when upgrading to v13
- Discord bot on Heroku throws an error: agent ??= new https.Agent
- Discord.js Bot Welcomes Member, Assign a Role and send them a DM
- Sending private messages to user
- Find out if someone has a role
- Discord API valid intents must be provided for the client [duplicate]
- Error [ERR_REQUIRE_ESM]: require() of ES Module not supported [duplicate]
- Having trouble sending a message to a channel with Discord.js [duplicate]
- MongooseError: Model.findOne() no longer accepts a callback at Function
- Error when requiring discordjs: “cannot find module ‘node:events'” [duplicate]
- Read a text file using Node.js?
- Importing modules using ES6 syntax and dynamic path [duplicate]