Clan Resource

Clans are an extension of guilds that are intended for small gaming communities, offering users the ability to display a global badge representing their group. They require an application to join, and thus have guild previewing disabled and member verification manual approval by default.

Clan Object

Clan Structure
FieldTypeDescription
idsnowflakeThe ID of the guild
namestringThe name of the guild (2-100 characters)
tagstringThe tag of the clan (2-4 characters)
icon_hash?stringThe guild's icon hash
member_countintegerApproximate count of total members in the guild
descriptionstringThe description for the clan; this can be different than the guild's description (max 160 characters)
play_style?integerThe play style of the clan
search_terms?array[string]Interests, topics, or traits for the clan (max 30, max 24 characters)
game_application_ids?array[snowflake]The IDs of the applications representing the games the clan plays (max 20)
badge?integerThe badge shown on the clan's tag
badge_hash?stringThe clan's badge hash
badge_color_primary?stringThe primary color of the badge as a hexadecimal color string
badge_color_secondary?stringThe secondary color of the badge as a hexadecimal color string
banner?integerThe banner representing the clan
banner_hash?stringThe clan's banner hash
brand_color_primary?stringThe primary color of the banner as a hexadecimal color string
brand_color_secondary?stringThe secondary color of the banner as a hexadecimal color string
wildcard_descriptors?array[string]Terms to describe the clan (max 3, max 12 characters)
Partial Clan Structure
FieldTypeDescription
tagstringThe tag of the clan (2-4 characters)
badgeintegerThe badge shown on the clan's tag
Clan Play Style
ValueNameTitleSubtitleEmoji
0NONE
1SOCIALVery CasualSkill doesn't matter. We have a good time win or lose.👋
2CASUALCasualWe play to chill and have fun, but more fun if we win!🎮
3COMPETITIVECompetitiveWe play together to win, rank up, or beat challenges.⚔️
4CREATIVE
5VERY_COMPETITIVEVery CompetitiveWe won't sleep until we win.💀
Clan Badge Type
ValueName
0SWORD
1WATER_DROP
2SKULL
3TOADSTOOL
4MOON
5LIGHTNING
6LEAF
7HEART
8FIRE
9COMPASS
10CROSSHAIRS
11FLOWER
12FORCE
13GEM
14LAVA
15PSYCHIC
16SMOKE
17SNOW
18SOUND
19SUN
20WIND
Clan Banner Style
ValueName
0NIGHT_SKY
1CASTLE
2WORLD_MAP
3SEA_FOAM
4WARP_TUNNEL
5HOUSE
6HEIGHT_MAP
7MESH
8SPATTER
Example Clan
{
"id": "1094450071610863667",
"name": "Apple's Tree",
"tag": "CUTE",
"icon_hash": "f25500db1de69d66a679c5fb2bdce28c",
"play_style": 2,
"member_count": 235,
"description": "Welcome to Apple's Tree! We are a chaotic bunch that groups together to play various games and laugh a little. Join our vibrant community and make memories!",
"search_terms": [
"English",
"Work-life Balance",
"20+",
"cars",
"anime",
"Inclusive",
"Beginner Friendly",
"travel",
"Server: NA",
"Streamers",
"music",
"All Ranks",
"Server: EU"
],
"game_application_ids": [
"356876176465199104",
"1158877933042143272",
"1149118246826561609",
"432980957394370572",
"700136079562375258",
"356875570916753438"
],
"badge": 7,
"badge_color_primary": "#c03f7d",
"badge_color_secondary": "#ff80bd",
"banner": 6,
"brand_color_primary": "#c03f7d",
"brand_color_secondary": "#ff80bd",
"wildcard_descriptors": ["Friendly", "Active", "Funny"],
"badge_hash": "0fcf9a436df1a4b0de5644d3d42188e2",
"banner_hash": "670481d4ce15cfe3621a7dd38ce77c6f"
}

Endpoints

Set Clan Identity

PUT/users/@me/clan

Sets the current user's primary clan. Returns an outdated partial user object on success. Fires a User Update Gateway event.

JSON Params
FieldTypeDescription
identity_enabledbooleanWhether the clan tag is enabled
identity_guild_id?snowflakeThe guild ID of the clan to be associated with, if any

Get Clans

GET/discovery/games/{game_type}

Returns a list of clan objects for a game type.

Game Type
ValueDescription
allAll clans
genshinClans for Genshin Impact
valorantClans for Valorant

Get Clan

GET/discovery/{guild.id}/clan

Returns a clan object associated with a guild if it has one.

Create Clan

POST/clan/{guild.id}

Enables clan features for a guild. Returns a 204 empty response on success. Fires a Guild Update Gateway event.

JSON Params
FieldTypeDescription
tagstringThe tag of the clan (2-4 characters)
game_application_idsarray[snowflake]The IDs of the applications representing the games the clan plays (max 20)
search_termsarray[string]Interests, topics, or traits for the clan (max 30, max 24 characters)
play_styleintegerThe play style of the clan
descriptionstringThe description for the clan; this can be different than the guild's description (max 160 characters)
wildcard_descriptorsarray[string]Terms to describe the clan (max 3, max 12 characters)
badgeintegerThe badge shown on the clan's tag
badge_color_primarystringThe primary color of the badge as a hexadecimal color string
badge_color_secondarystringThe secondary color of the badge as a hexadecimal color string
bannerintegerThe banner representing the clan
brand_color_primarystringThe primary color of the banner as a hexadecimal color string
brand_color_secondarystringThe secondary color of the banner as a hexadecimal color string
verification_form 1member verification objectThe member verification shown to applicants

1 When modifying, only the form_fields and optionally description fields are accepted.

Get Clan Settings

GET/clan/{guild.id}/settings

Returns a guild's clan settings.

Response Body
FieldTypeDescription
tagstringThe tag of the clan (2-4 characters)
game_application_idsarray[snowflake]The IDs of the applications representing the games the clan plays (max 20)
search_termsarray[string]Interests, topics, or traits for the clan (max 30, max 24 characters)
play_styleintegerThe play style of the clan
descriptionstringThe description for the clan; this can be different than the guild's description (max 160 characters)
wildcard_descriptorsarray[string]Terms to describe the clan (max 3, max 12 characters)
badgeintegerThe badge shown on the clan's tag
badge_color_primarystringThe primary color of the badge as a hexadecimal color string
badge_color_secondarystringThe secondary color of the badge as a hexadecimal color string
bannerintegerThe banner representing the clan
brand_color_primarystringThe primary color of the banner as a hexadecimal color string
brand_color_secondarystringThe secondary color of the banner as a hexadecimal color string
verification_formmember verification objectThe member verification data shown to applicants

Modify Clan Settings

PATCH/clan/{guild.id}/settings

Updates a guild's clan settings. Returns a 204 empty response on success.

JSON Params
FieldTypeDescription
tag?stringThe tag of the clan (2-4 characters)
game_application_ids?array[snowflake]The IDs of the applications representing the games the clan plays (max 20)
search_terms?array[string]Interests, topics, or traits for the clan (max 30, max 24 characters)
play_style?integerThe play style of the clan
description?stringThe description for the clan; this can be different than the guild's description (max 160 characters)
wildcard_descriptors?array[string]Terms to describe the clan (max 3, max 12 characters)
badge?integerThe badge shown on the clan's tag
badge_color_primary?stringThe primary color of the badge as a hexadecimal color string
badge_color_secondary?stringThe secondary color of the badge as a hexadecimal color string
banner?integerThe banner representing the clan
brand_color_primary?stringThe primary color of the banner as a hexadecimal color string
brand_color_secondary?stringThe secondary color of the banner as a hexadecimal color string
verification_form? 1member verification objectThe member verification data shown to applicants

1 When modifying, only the form_fields and optionally description fields are accepted.

Disable Clan

POST/clan/{guild.id}/disable

Disables clan features for a guild. Returns a 204 empty response on success. Fires a Guild Update Gateway event.