Skip to content
Fluxer API

Guild member search

Search guild members by name, role and join information. Results can lag behind membership changes. Get guild member returns the current membership.

ValueNameDescription
0CREATORMember created the guild
1INSTANT_INVITEMember joined through an invite
2VANITY_URLMember joined through the guild vanity URL
3BOT_INVITEMember was added through a bot invite
4ADMIN_FORCE_ADDInstance administrator added the member directly
6DISCOVERYMember joined through guild discovery

One matched membership, with the account fields at the top level of the object.

FieldTypeDescription
idstringThe search result ID, as {guild_id}_{user_id}
guild_idsnowflakeThe ID of the guild
user_idsnowflakeThe ID of the account
usernamestringThe username of the account
discriminatorstringThe four-digit discriminator of the account
global_name?stringThe global display name of the account
nickname1?stringThe nickname of the member in this guild
role_ids1array[snowflake]The IDs of the roles assigned to the member, without the everyone role
joined_atintegerThe time the account became a member, in Unix seconds
supplementalguild member search supplemental objectHow the member joined
is_botbooleanWhether the account is a bot

1 The guild member object calls these fields nick and roles

{
"id": "1489002177550843904_1489002177550843906",
"guild_id": "1489002177550843904",
"user_id": "1489002177550843906",
"username": "ada",
"discriminator": "0042",
"global_name": "Ada",
"nickname": null,
"role_ids": ["1489002177550843910"],
"joined_at": 1755158400,
"supplemental": {"join_source_type": 1, "source_invite_code": "aBc123", "inviter_id": "1489002177550843905"},
"is_bot": false
}

The join source of a membership. Every field is null without MANAGE_GUILD, and a field is also null when the membership recorded no value.

FieldTypeDescription
join_source_type??integerThe join source type of the membership
source_invite_code?stringThe invite code the member joined through
inviter_id?snowflakeThe ID of the account that created that invite

One page of search results.

FieldTypeDescription
guild_idsnowflakeThe ID of the guild
membersarray[guild member search result object]The matched page
page_result_countintegerThe number of results in members
total_result_countintegerThe number of memberships matching the filters
indexingbooleanWhether the guild member index is being built
POST/v1/guilds/{guild_id}/members-searchBot

Returns a guild member search response object. You need at least one of the MANAGE_GUILD, MANAGE_ROLES, MANAGE_NICKNAMES, BAN_MEMBERS, MODERATE_MEMBERS or KICK_MEMBERS permissions. In a guild that requires MFA, you also need an enrolled authenticator if you hold any of them other than MANAGE_NICKNAMES, unless you own the guild.

FieldTypeDescription
query?stringThe text matched against username, discriminator, global name, nickname and user ID (max 100 characters)
limit?integerThe maximum number of results to return (1-100, default 25)
offset?integerThe number of matching results to skip (minimum 0, default 0)
role_ids?array[snowflake]The role IDs a matched member must all hold (max 10)
joined_at_gte?integerOnly members who joined at or after this time, in Unix seconds
joined_at_lte?integerOnly members who joined at or before this time, in Unix seconds
join_source_type?1array[integer]The join source types to include (max 10)
source_invite_code?1array[string]The invite codes to include (max 10)
is_bot?booleanInclude only bot accounts when true, and only non-bot accounts when false
user_created_at_gte?integerOnly accounts created at or after this time, in Unix seconds
user_created_at_lte?integerOnly accounts created at or before this time, in Unix seconds
sort_by?stringThe sort field, joinedAt (default) or relevance
sort_order?stringThe sort direction, asc or desc (default desc, ignored for relevance)

1 Ignored unless you have MANAGE_GUILD

On an instance that uses Meilisearch, total_result_count is an estimate that stops at 10000, and an offset past 10000 returns an empty page.

StatusBodyCondition
200guild member search response objectThe search ran, or the index is not ready
400error responseTWO_FACTOR_REQUIRED when the guild requires MFA and you have none, or INVALID_FORM_BODY when a body field is invalid
403error responseMISSING_PERMISSIONS without membership or any of the permissions above, or MISSING_ACCESS when the guild is unavailable
404error responseUNKNOWN_GUILD when the guild does not exist

While Fluxer indexes the guild's members, the page is empty and indexing is true, and you can retry the request later. If the instance has no member search, the page is empty and indexing is false.

The rate limit is 40 requests per 10 seconds, on the guild:members::guild_id bucket.