Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

318
Views
Cannot get presence informations even thought developer portal switches are enabled discord.js

I have my code here :

// ...
    run: (client,message,args) =>{
        let member = message.member
        console.log(member.presence) // null
        if(!member.presence) return message.say(`${n} - I cannot access **${member.nickname || member.user.tag}**'s presence.`)
        if(!member.presence.activities[0]) return message.reply(`${n} - No activity detected from \`${member.user.tag} !\``)
        message.reply('Informations logged on the console.')
        console.log(member.presence)
    }

I keep having my bot sending this :

No activity detected

After having checked if other people got the same issue I only saw people who didn't activated the following check boxes :

The switches

The thing is I already did and no matter how many times I rerun my bot, member.presence keeps being null and I can't understand why.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Okay so I've been checking around a little more and I found out it's just because I didn't put GUILD_PRESENCES in my intents, silly me.

I just had to change this

const client = new Discord.Client({
  intents : [
    "GUILDS",
    "GUILD_MEMBERS",
    "GUILD_MESSAGES"
  ]
})

to this :

const client = new Discord.Client({
  intents : [
    "GUILDS",
    "GUILD_MEMBERS",
    "GUILD_MESSAGES",
    "GUILD_PRESENCES"
  ]
})

And restarting my bot fixed it all!

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!