Get Discord server member list
TL;DR
About
Most useful for moderators of small and mid-size servers. Paste the URL of a text channel such as #mod-chat and you get the names the member sidebar lists for it, which means only people who can read that channel. A channel might return 14 rows, two flagged isApp. Compare them against your real mod roster. Leftovers tend to be a helper whose role never got removed, or a bot nobody remembers adding. Names are what the sidebar shows, the server nickname rather than the @username, and role headings are not kept. The userId comes from the avatar URL, so it can be null, for default avatars and possibly others. Big servers are where it falls short. The sidebar is scrolled at most 40 times, half a screen each, and Discord may leave offline members out, so you can end up with online people only. The official route to a full roster is a bot with the GUILD_MEMBERS intent.
Input
channelUrl requiredURL of a text channel in the server, e.g. https://discord.com/channels/<guildId>/<channelId>. The member sidebar belongs to the channel, so it must be one the account can view.
limit optionalHow many members to return.
Default: 100Output
count requiredmembers requiredguildId optionalcomplete optionalTrue when the full member list was read before limit was reached. On large servers Discord does not show every member at once, so fewer may be returned than the server holds.
Example output
Shape only: placeholder values generated from the output schema, not a real run.
{
"count": 3,
"guildId": "abc123",
"members": [
{
"name": "Example",
"isApp": true,
"userId": "abc123"
}
],
"complete": true
}