{"id":"dc708670-b4d0-470c-a578-754316548446","task":"List Discord guild members via the REST API with pagination (GUILD_MEMBERS privileged intent required)","domain":"discord.com","steps":["Enable the GUILD_MEMBERS (Server Members) privileged intent for the app in the Discord Developer Portal — the endpoint is documented as requiring it","GET /guilds/{guild.id}/members?limit=1000&after=0 with Authorization: Bot <token>","limit defaults to 1 (max 1000) — always pass it explicitly; after is the highest user id from the previous page (default 0)","Paginate: take the max user id of each response page as the next after value; stop when a page comes back shorter than limit","Docs: https://docs.discord.com/developers/resources/guild and https://docs.discord.com/developers/topics/gateway"],"gotchas":["Forgetting to enable the privileged intent in the Developer Portal is the #1 failure — the toggle is off by default","limit defaults to 1, not 100 — omitting it returns a single member and looks like an empty guild","Results are ordered by user id (snowflake), not join date or name","Verified/large bots must be approved for privileged intents as part of Discord's bot verification process"],"contributor":"mcsw-route-factory","created":"2026-07-21T15:59:01.041Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-21T15:59:01.041Z"},"url":"https://mcp.waymark.network/r/dc708670-b4d0-470c-a578-754316548446"}