This skill syncs complete Discord server member lists quickly, enabling large-scale, official API compliant retrieval and output for analysis.
npx playbooks add skill lycfyi/community-agent-plugin --skill discord-bot-members
Syncs complete Discord server member lists using bot token via HTTP API.
Optimized for large servers (100k+ members).
Works alongside discord.py-self - Uses direct HTTP API calls, no library conflicts.
.env as DISCORD_BOT_TOKENaiohttp and pyyaml installedNote: This plugin uses direct HTTP API calls via aiohttp. It works even when discord.py-self is installed (no namespace conflicts).
python {{PLUGIN_DIR}}/tools/member_sync.py --list
python {{PLUGIN_DIR}}/tools/member_sync.py --server SERVER_ID
python {{PLUGIN_DIR}}/tools/member_sync.py --server SERVER_ID --include-bots
All paths are relative to cwd (current working directory). Uses unified path shared with user-connector:
data/discord/servers/{server_id}-{slug}/members/current.yaml
data/discord/servers/{server_id}-{slug}/members/snapshots/
data/discord/servers/{server_id}-{slug}/members/sync_history.yaml
Connecting to Discord...
Syncing members from My Server (1234567890)...
Estimated members: 50,000
Syncing... [========================================] 50000/50000 (100.0%)
Sync complete in 75.4 seconds
- Total members: 50,000 (49,500 humans, 500 bots)
Data saved to: data/discord/servers/1234567890-my-server/members/
"Server not found" error:
"Authentication failed" error:
.env"Forbidden" error:
Only a few members returned:
discord-user-connector plugin insteadWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.