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

177
Views
How to fetch discord member list

I'm trying to fetch the member list of a discord server. The Discord bot is inside the server and has admin permission. I'm referring to this part of the documentation Discord Docs.

const response = await fetch(`https://discord.com/api/guilds/685509789178003502/members`, {
            headers: {
                Authorization: `Bot ${botToken}`
            }
        })
var currentUser = await response.json()

This is the response I'm getting {"message":"Missing Access","code":50001} I checked it like a million times and the bot has admin perms 100%.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Enable Members Intent

Further Reading: https://gist.github.com/advaith1/e69bcc1cdd6d0087322734451f15aa2f

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!