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

110
Views
Attempt to get guild member always errors

So I'm creating a third-party to discord verification bot, and all of it works, except for when I try to access the guild member. The third-party sends all the data back to the bot, but for some reason, (and all the information is correct), it doesn't allow me to get the guild member, (via their discord id), and change their nickname.

Here's the code, and any help is appreciated!

let Mem = message.guild.members.cache.find(Member => Member.id === String(message.content.split(' ')[0]));

Mem.setNickname(message.content.split(' ')[1]);

I've tried (what I think) is all of the ways to access the guild member, but none of them work. The id is valid, which is why it's even more confusing. Thanks in advance!

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

You aren't allowed to access the whole server list by default. You need discord GUILD_MEMBERS intent, and also make sure to enable Server Members Intent in the website Discord Developer > Your Bot > Bot > Privileged Gateway Intents > Server Members Intent

about 4 years ago · Santiago Gelvez 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!