Abhay Singh
Abhay Singh

Reputation: 35

Discord.js "message.member" returns null even when my packages are upto date

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

Answers (1)

Bimoware
Bimoware

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

Related Questions