Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/change-log/2025-07-02-gradient-roles-guild-tags.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: "Gradient Roles and Guild Tags"
date: "2025-07-02"
topics:
- "HTTP API"
---

We've documented gradient role colors and guild tags in the API. Guild tags let users rep their favorite server with a 1-4 character badge next to their display name. They can be accessed using the `primary_guild` field on the user object. Servers can now give gradient colors to their roles instead of a single, solid color. Gradient colors use the new `colors` field on the guild object. As part of this change, the `color` field on roles is now deprecated, but it will still work for backwards compatibility.

#### Gradient Role Colors

- The guild feature `ENHANCED_ROLE_COLORS` will let you know if a guild is able to set gradient colors to roles.
- Guild roles now have `colors` as part of the [structure](/docs/topics/permissions#role-object-role-structure).
- `color` on guild roles is deprecated but will still be returned by the API and continues to work for backwards compatibility.
- [Role color structure](/docs/topics/permissions#role-object-role-colors-object)

#### Guild Tags

- Guild tags can be retrieved through the `primary_guild` field on the user object.
- [User Primary Guild](/docs/resources/user#user-object-user-primary-guild)
4 changes: 2 additions & 2 deletions docs/resources/guild.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,7 @@ This endpoint supports the `X-Audit-Log-Reason` header.
|---------------|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|
| name | string | name of the role, max 100 characters | "new role" |
| permissions | string | bitwise value of the enabled/disabled permissions | @everyone permissions in guild |
| color* | integer | RGB color value | 0 |
| color* | integer | **Deprecated** RGB color value | 0 |
| colors | [role colors](/docs/topics/permissions#role-object-role-colors-object) object | the role's colors | [default role colors object](/docs/topics/permissions#role-object-default-role-colors-object) |
| hoist | boolean | whether the role should be displayed separately in the sidebar | false |
| icon | ?[image data](/docs/reference#image-data) | the role's icon image (if the guild has the `ROLE_ICONS` feature) | null |
Expand Down Expand Up @@ -1285,7 +1285,7 @@ This endpoint supports the `X-Audit-Log-Reason` header.
|---------------|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
| name | string | name of the role, max 100 characters |
| permissions | string | bitwise value of the enabled/disabled permissions |
| color* | integer | RGB color value |
| color* | integer | **Deprecated** RGB color value |
| colors | [role colors](/docs/topics/permissions#role-object-role-colors-object) object | the role's colors |
| hoist | boolean | whether the role should be displayed separately in the sidebar |
| icon | [image data](/docs/reference#image-data) | the role's icon image (if the guild has the `ROLE_ICONS` feature) |
Expand Down
2 changes: 1 addition & 1 deletion docs/topics/permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Roles represent a set of permissions attached to a group of users. Roles have na
|----------------|-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|
| id | snowflake | role id |
| name | string | role name |
| color* | integer | integer representation of hexadecimal color code |
| color* | integer | **Deprecated** integer representation of hexadecimal color code |
| colors | [role colors](/docs/topics/permissions#role-object-role-colors-object) object | the role's colors |
| hoist | boolean | if this role is pinned in the user listing |
| icon? | ?string | role [icon hash](/docs/reference#image-formatting) |
Expand Down