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

153
Views
Discord.js guild.members.get() only works with my ID

Hello im trying to get a user object with a user id I currently got this code

const guild_int = client.guilds.cache.get("GUILD ID");
const mention = guild_int.members.cache.get("USER ID");

For some reason I only get a valid user object when I the bot creator enter my own ID this does not work for anyone else but me

I checked and the guild_int object is correct

Please help me out

about 4 years ago · Juan Pablo Isaza
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!