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

307
Views
No se puede obtener información de presencia aunque los interruptores del portal de desarrolladores estén habilitados discord.js

Tengo mi código aquí:

 // ... 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) }

Sigo teniendo mi bot enviando esto:

No se detectó actividad

Después de haber verificado si otras personas tenían el mismo problema, solo vi personas que no activaron las siguientes casillas de verificación:

los interruptores

La cuestión es que ya lo hice y no importa cuántas veces vuelva a ejecutar mi bot, member.presence sigue siendo nulo y no puedo entender por qué.

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

0

De acuerdo, estuve investigando un poco más y descubrí que es solo porque no puse GUILD_PRESENCES en mis intentos, tonto de mí.

Solo tuve que cambiar esto

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

a esto :

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

¡Y reiniciar mi bot lo arregló todo!

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!