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