-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Document user guild tags #6836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Document user guild tags #6836
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
96a6b93
[primary guild] Add documentation for user primary guild.
hammerdr b359b29
Fix links
kirbycool 16d23a6
"object"
advaith1 6faeb15
Update badge path and add null identity_enabled explainer.
kirbycool 96e17b6
Clarify null case
kirbycool 5b010b7
Update guild tag badge name
kirbycool ff3ef27
Fix tables
kirbycool File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,6 +48,7 @@ There are other rules and restrictions not shared here for the sake of spam and | |
| | public_flags? | integer | the public [flags](/docs/resources/user#user-object-user-flags) on a user's account | identify | | ||
| | avatar_decoration_data? | ?[avatar decoration data](/docs/resources/user#avatar-decoration-data-object) object | data for the user's avatar decoration | identify | | ||
| | collectibles? | ?[collectibles](/docs/resources/user#collectibles) object | data for the user's collectibles | identify | | ||
| | primary_guild? | ?[user primary guild](/docs/resources/user#user-object-user-primary-guild) object | the user's primary guild | identify | | ||
|
|
||
| ###### Example User | ||
|
|
||
|
|
@@ -75,6 +76,12 @@ There are other rules and restrictions not shared here for the sake of spam and | |
| "label": "", | ||
| "palette": "cobalt" | ||
| } | ||
| }, | ||
| "primary_guild": { | ||
| "identity_guild_id": "1234647491267808778", | ||
| "identity_enabled": true, | ||
| "tag": "DISC", | ||
| "badge": "7d1734ae5a615e82bc7a4033b98fade8" | ||
| } | ||
| } | ||
| ``` | ||
|
|
@@ -110,6 +117,15 @@ Premium types denote the level of premium a user has. Visit the [Nitro](https:// | |
| | 2 | Nitro | | ||
| | 3 | Nitro Basic | | ||
|
|
||
| ###### User Primary Guild | ||
|
|
||
| | Field | Type | Description | | ||
| |-------------------|------------|---------------------------------------------------------------| | ||
| | identity_guild_id | ?snowflake | the id of the user's primary guild | | ||
| | identity_enabled | ?boolean | whether the user is displaying the primary guild's server tag | | ||
|
||
| | tag | ?string | the text of the user's server tag. Limited to 4 characters | | ||
| | badge | ?string | the [server tag badge hash](/docs/reference#image-formatting) | | ||
|
|
||
| ### Avatar Decoration Data Object | ||
|
|
||
| The data for the user's [avatar decoration](https://support.discord.com/hc/en-us/articles/13410113109911-Avatar-Decorations). | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what the asterisk is doing here, as this does not support GIFs, and the asterisk isn't present in the icon routes for example. Just to improve clarity.