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

142
Views
TypeError: no se pueden leer las propiedades de undefined (leyendo 'miembros') discord js

En mi bot constantemente me sale un error que no ve participantes

 const client = new Discord.Client({ intents: new Discord.Intents(32767) }) const guild = client.guilds.cache.get('909512069999628349'); client.on('ready', () => { guild.members.fetch() .then(console.log) .catch(console.error); });
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Su bot no está conectado a Discord antes de que se intente obtener el gremio. Es simple. Simplemente mueva el const guild dentro del evento Listo, o use un truco similar a este:

 let guild; client.on('ready', () => { guild = client.guilds.cache.get('id')
about 4 years ago · Juan Pablo Isaza Report

0

Intente usar members?.fetch() , probablemente su objeto podría no estar definido, así que haga esto en su lugar

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!