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
description?stringThe 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)
game_activity?map[snowflake, game activity object]The activity of the clan in each game
discovery_profile_features?array[string]Clan-specific guild features
Partial Clan Structure
FieldTypeDescription
tagstringThe tag of the clan (2-4 characters)
badgeintegerThe badge shown on the clan's tag
Game Activity Structure
FieldTypeDescription
activity_levelintegerThe activity level of the clan in the game
activity_scoreintegerThe activity score of the clan in the game
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": "1241115476021481582",
"name": "Fehlerj\u00e4ger",
"tag": "BUG",
"icon_hash": "b47f6747d7d6548b6f3eaf8c8e8af20c",
"member_count": 120,
"description": "Do you enjoy finding those creepy crawlies? \ud83d\udc1b We seek those with a keen eye and ability for uncovering hidden gems. Not all bugs are what they seem \ud83d\udd0e Ready to join the hunt?",
"search_terms": ["Tech", "P0", "Work-life Balance", "H1", "Security"],
"badge": 6,
"badge_color_primary": "#219b54",
"badge_color_secondary": "#57b59e",
"banner": 7,
"brand_color_primary": "#7cf895",
"brand_color_secondary": "#f5cc74",
"wildcard_descriptors": ["open discord", "do bug", ""],
"badge_hash": "6cdb13f9bdba1234e711a7c24dce1f51",
"banner_hash": "1468ceeb0f9c384826b982b7eddbfa6f",
"play_style": 0,
"game_application_ids": ["356869127241072640"],
"game_activity": {
"356869127241072640": {
"activity_level": 1,
"activity_score": 45
}
},
"discovery_profile_features": ["CLAN_DISCOVERY_DISABLED"]
}

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 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.