Reputation: 35
I've read this post but it did't seems working for me.
console.log(message.member)
I'm using Discord.js V13. accurate version: 13.6.0
Upvotes: 0
Views: 496
Reputation: 1362
If message.member
is null, it means the message comes from a private message, not in a server. Or, that you don't have the necessary intents enabled :
const client = new Discord.Client({
// Add this :
intents : ['GUILDS','GUILD_MEMBERS','GUILD_MESSAGES']
})
Upvotes: 1