Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

524
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda