Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

526
Vistas
client.guilds.cache.get(...). members.get It is not a function

I'm doing a command with cargo, this error comes and I can't understand it, here's the script:

const member = client.guilds.cache.get('980553630480474232').members.get(interaction.user.id); 

And here is the error: client.guilds.cache.get(...).members.get is not a function.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

In v13, you need to use .cache.get(), if the error persists double check your guild ID.

If you encounter such an error try console.log() to see wich value is undefined, because such errors results from having undefined values.

And for future advice if you need a value more than once in your code define it first, in this case use

const guild = client.guilds.cache.get('980553630480474232');
const member = guild.members.cache.get('ID')

Side Note: If this is a command file, you can directly get the guild using:

interaction.guild.members.get(interaction.user.id)
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda