OverviewProductsPlatformsAPI ReferenceResources

List Discord guild members

GEThttps://zernio.com/api/v1/discord/guilds/{guildId}/members

Cursor-paginated list of guild members. Returns Discord's raw member objects so callers can build community-ops automation (e.g. "add role to all members joined in the last 7 days") on the actual platform shape.

Pagination: pass after = the last user.id from the previous page. Omit on the first call. Response includes a nextCursor and hasMore flag so callers don't need to know Discord's pagination shape.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

guildIdstringRequired

Query parameters

accountIdstringRequired
limitintegerDefault 100

Page size (1-1000).

afterstring

Snowflake of the last member from the previous page.

Responses

Success· the request worked

Errors· the request failed

GET/v1/discord/guilds/{guildId}/members
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.discord.listDiscordGuildMembers({  path: {    guildId: 'guild_abc123',  },  query: {    accountId: 'account_abc123',  },});console.log(data);
{  "data": [    {      "user": {        "id": "string",        "username": "string",        "discriminator": "string",        "avatar": "string",        "global_name": "string"      },      "nick": "string",      "roles": [        "string"      ],      "joined_at": "2019-08-24T14:15:22Z",      "premium_since": "2019-08-24T14:15:22Z"    }  ],  "pagination": {    "nextCursor": "string",    "hasMore": true  }}
OpenAPI specification
Was this page helpful?