Discord · api · fg-0447

Discord guild member list holds only a handful of users and fetching all members times out

If you see guild.members.cache.size is far below the server's member count, the cause and the fix for Discord are below, last verified 2026-10-15.

Verified Oct 2026trust 50/100
Symptom
guild.members.cache.size is far below the server's member countError [GUILD_MEMBERS_TIMEOUT]: Members didn't arrive in timeList Guild Members returns an error or nothing for the bot
Cause
Without the privileged GUILD_MEMBERS intent the gateway does not send the member list, so the cache holds only members seen in other events. The List Guild Members endpoint itself requires that intent.
Fix
Enable Server Members Intent in the portal and request GuildMembers in code before fetching members. Prefer fetching the specific members you need over loading every member.
Apply
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers] }); const members = await guild.members.fetch();
Affected
Discord API v10 gateway; discord.js 12 and later
Sources

Last verified 2026-10-15 · Confirmed by 0 builders

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun