Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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 allow users to rep their primary server with a four character badge next to their display name. They can be accessed from `primary_guild` on a user. Gradient role colors allow servers to have roles with gradient colors instead of a single, solid color. They can be found as `colors` when interacting with roles in guilds. As part of this change we have deprecated the `color` field on roles, 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 user `primary_guild` field.
- [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