Skip to content

Commit 82f3d7b

Browse files
committed
Update tag docs with new terminology.
1 parent ee625de commit 82f3d7b

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

docs/Reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Discord uses ids and hashes to render images in the client. These hashes can be
344344
| Role Icon | role-icons/[role_id](#DOCS_TOPICS_PERMISSIONS/role-object)/[role_icon](#DOCS_TOPICS_PERMISSIONS/role-object).png | PNG, JPEG, WebP |
345345
| Guild Scheduled Event Cover | guild-events/[scheduled_event_id](#DOCS_RESOURCES_GUILD_SCHEDULED_EVENT/guild-scheduled-event-object)/[scheduled_event_cover_image](#DOCS_RESOURCES_GUILD_SCHEDULED_EVENT/guild-scheduled-event-object).png | PNG, JPEG, WebP |
346346
| Guild Member Banner | guilds/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/users/[user_id](#DOCS_RESOURCES_USER/user-object)/banners/[member_banner](#DOCS_RESOURCES_GUILD/guild-member-object).png \* | PNG, JPEG, WebP, GIF |
347-
| Clan Badge | clan-badges/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[badge_hash](#DOCS_RESOURCES_USER/user-object-user-clan).png \* | PNG, JPEG, WebP, GIF |
347+
| Server Tag Badge | clan-badges/[guild_id](#DOCS_RESOURCES_GUILD/guild-object)/[badge_hash](#DOCS_RESOURCES_USER/user-object-user-primary-guild).png \* | PNG, JPEG, WebP |
348348

349349
\* In the case of endpoints that support GIFs, the hash will begin with `a_` if it is available in GIF format. (example: `a_1269e74af4df7417b13759eae50c83dc`)
350350

docs/resources/User.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,26 @@ There are other rules and restrictions not shared here for the sake of spam and
2424

2525
###### User Structure
2626

27-
| Field | Type | Description | Required OAuth2 Scope |
28-
|--------------------|-----------|------------------------------------------------------------------------------------------------------|-----------------------|
29-
| id | snowflake | the user's id | identify |
30-
| username | string | the user's username, not unique across the platform | identify |
31-
| discriminator | string | the user's Discord-tag | identify |
32-
| global_name | ?string | the user's display name, if it is set. For bots, this is the application name | identify |
33-
| avatar | ?string | the user's [avatar hash](#DOCS_REFERENCE/image-formatting) | identify |
34-
| bot? | boolean | whether the user belongs to an OAuth2 application | identify |
35-
| system? | boolean | whether the user is an Official Discord System user (part of the urgent message system) | identify |
36-
| mfa_enabled? | boolean | whether the user has two factor enabled on their account | identify |
37-
| banner? | ?string | the user's [banner hash](#DOCS_REFERENCE/image-formatting) | identify |
38-
| accent_color? | ?integer | the user's banner color encoded as an integer representation of hexadecimal color code | identify |
39-
| locale? | string | the user's chosen [language option](#DOCS_REFERENCE/locales) | identify |
40-
| verified? | boolean | whether the email on this account has been verified | email |
41-
| email? | ?string | the user's email | email |
42-
| flags? | integer | the [flags](#DOCS_RESOURCES_USER/user-object-user-flags) on a user's account | identify |
43-
| premium_type? | integer | the [type of Nitro subscription](#DOCS_RESOURCES_USER/user-object-premium-types) on a user's account | identify |
44-
| public_flags? | integer | the public [flags](#DOCS_RESOURCES_USER/user-object-user-flags) on a user's account | identify |
45-
| avatar_decoration? | ?string | the user's [avatar decoration hash](#DOCS_REFERENCE/image-formatting) | identify |
46-
| clan? | ?UserClan | the user's [clan data](#DOCS_RESOURCES_USER/user-object-user-clan) | identify |
27+
| Field | Type | Description | Required OAuth2 Scope |
28+
|--------------------|-------------------|------------------------------------------------------------------------------------------------------|-----------------------|
29+
| id | snowflake | the user's id | identify |
30+
| username | string | the user's username, not unique across the platform | identify |
31+
| discriminator | string | the user's Discord-tag | identify |
32+
| global_name | ?string | the user's display name, if it is set. For bots, this is the application name | identify |
33+
| avatar | ?string | the user's [avatar hash](#DOCS_REFERENCE/image-formatting) | identify |
34+
| bot? | boolean | whether the user belongs to an OAuth2 application | identify |
35+
| system? | boolean | whether the user is an Official Discord System user (part of the urgent message system) | identify |
36+
| mfa_enabled? | boolean | whether the user has two factor enabled on their account | identify |
37+
| banner? | ?string | the user's [banner hash](#DOCS_REFERENCE/image-formatting) | identify |
38+
| accent_color? | ?integer | the user's banner color encoded as an integer representation of hexadecimal color code | identify |
39+
| locale? | string | the user's chosen [language option](#DOCS_REFERENCE/locales) | identify |
40+
| verified? | boolean | whether the email on this account has been verified | email |
41+
| email? | ?string | the user's email | email |
42+
| flags? | integer | the [flags](#DOCS_RESOURCES_USER/user-object-user-flags) on a user's account | identify |
43+
| premium_type? | integer | the [type of Nitro subscription](#DOCS_RESOURCES_USER/user-object-premium-types) on a user's account | identify |
44+
| public_flags? | integer | the public [flags](#DOCS_RESOURCES_USER/user-object-user-flags) on a user's account | identify |
45+
| avatar_decoration? | ?string | the user's [avatar decoration hash](#DOCS_REFERENCE/image-formatting) | identify |
46+
| primary_guild? | ?UserPrimaryGuild | the user's [clan data](#DOCS_RESOURCES_USER/user-object-user-primary-guild) | identify |
4747

4848
###### Example User
4949

@@ -59,13 +59,13 @@ There are other rules and restrictions not shared here for the sake of spam and
5959
"banner": "06c16474723fe537c283b8efa61a30c8",
6060
"accent_color": 16711680,
6161
"premium_type": 1,
62-
"public_flags": 64
63-
"clan": {
62+
"public_flags": 64,
63+
"primary_guild": {
6464
"identity_guild_id": "1234647491267808778",
6565
"identity_enabled": true,
6666
"tag": "DISC",
6767
"badge": "7d1734ae5a615e82bc7a4033b98fade8"
68-
},
68+
}
6969
}
7070
```
7171

@@ -100,14 +100,14 @@ Premium types denote the level of premium a user has. Visit the [Nitro](https://
100100
| 2 | Nitro |
101101
| 3 | Nitro Basic |
102102

103-
###### User Clan
103+
###### User Primary Guild
104104

105-
| Field | Type | Description |
106-
|-------------------|-----------|----------------------------------------------------------|
107-
| identity_guild_id | snowflake | the id of the user's primary clan |
108-
| identity_enabled | boolean | whether the user is displaying their clan tag |
109-
| tag | string | the text of the user's clan tag. Limited to 4 characters |
110-
| badge | string | the [clan badge hash](#DOCS_REFERENCE/image-formatting) |
105+
| Field | Type | Description |
106+
|-------------------|-----------|---------------------------------------------------------------|
107+
| identity_guild_id | snowflake | the id of the user's primary guild |
108+
| identity_enabled | boolean | whether the user is displaying the primary guild's server tag |
109+
| tag | string | the text of the user's server tag. Limited to 4 characters |
110+
| badge | string | the [server tag badge hash](#DOCS_REFERENCE/image-formatting) |
111111

112112
### Connection Object
113113

0 commit comments

Comments
 (0)