Skip to content

Document role gradient colors #7549

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 13 commits into from
Jun 26, 2025
Merged

Conversation

DA-344
Copy link
Contributor

@DA-344 DA-344 commented May 9, 2025

Adds documentation for the role's gradient colors

@DA-344 DA-344 requested a review from a team as a code owner May 9, 2025 14:52
@DA-344 DA-344 requested review from anthonydiscord and removed request for a team May 9, 2025 14:52
Co-authored-by: Suspense <64612795+AlmostSuspense@users.noreply.github.com>
@Lulalaby
Copy link
Contributor

Lulalaby commented May 9, 2025

I might be wrong here, but it seems like the holographic style needs the following config:
primary (11127295), secondary (16759788), tertiary (16761760)
And tertiary can't be set for normal gradients.

I haven't tested around enough, but that was my impression

@advaith1
Copy link
Member

I assumed that was a client only restriction, is it enforced server side?

@anthonydiscord anthonydiscord added the not released This issue or PR is referencing a change that is not yet widely released and/or subject to change. label May 19, 2025
@DA-344
Copy link
Contributor Author

DA-344 commented May 27, 2025

I might be wrong here, but it seems like the holographic style needs the following config: primary (11127295), secondary (16759788), tertiary (16761760) And tertiary can't be set for normal gradients.

I haven't tested around enough, but that was my impression

I also haven't tested enough with the holographic style, but afaik the restriction was only enforced on client side - similar to how channel cooldowns used to be in it

@advaith1
Copy link
Member

turns out the holographic role colors are validated. this needs to be documented

@anthonydiscord anthonydiscord removed the not released This issue or PR is referencing a change that is not yet widely released and/or subject to change. label Jun 24, 2025
DA-344 and others added 3 commits June 25, 2025 09:14
Co-authored-by: Anthony <anthony.tesija@discordapp.com>
Co-authored-by: Anthony <anthony.tesija@discordapp.com>
@DA-344 DA-344 requested a review from anthonydiscord June 25, 2025 07:35
Copy link
Contributor

@anthonydiscord anthonydiscord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed one more spot for changes and then this looks good to me! Thanks again for taking the time to do this

Co-authored-by: Anthony <anthony.tesija@discordapp.com>
@anthonydiscord
Copy link
Contributor

Make sure to run npm run test:links to figure out which links aren't formatted properly and then npm run fix:tables when you're done to auto format the tables

@DA-344
Copy link
Contributor Author

DA-344 commented Jun 26, 2025

Make sure to run npm run test:links to figure out which links aren't formatted properly and then npm run fix:tables when you're done to auto format the tables

Done

@anthonydiscord
Copy link
Contributor

Amazing!! Thanks again for the in depth contribution!

@anthonydiscord anthonydiscord merged commit be4846c into discord:main Jun 26, 2025
4 checks passed
Snazzah added a commit to Snazzah/slash-create that referenced this pull request Jun 27, 2025
mazylol pushed a commit to mazylol/discord-api-docs that referenced this pull request Jul 3, 2025
* feat: document role gradient colors

* object

* comma

* features and more clear docs

* tables

* typo on permissions.md

Co-authored-by: Suspense <64612795+AlmostSuspense@users.noreply.github.com>

* add note about holographic style

* Reword info block on RoleColors

Co-authored-by: Anthony <anthony.tesija@discordapp.com>

* 's

Co-authored-by: Anthony <anthony.tesija@discordapp.com>

* Update based on the review

* 's

Co-authored-by: Anthony <anthony.tesija@discordapp.com>

* apply suggestions and fix tables

---------

Co-authored-by: Suspense <64612795+AlmostSuspense@users.noreply.github.com>
Co-authored-by: Anthony <anthony.tesija@discordapp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants