- 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