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

523
Views
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 answers
Answer question

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 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!