Add support for enhanced role colors#2975
Merged
MinnDevelopment merged 4 commits intomasterfrom Dec 12, 2025
Merged
Conversation
36b211c to
0794202
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds support for enhanced role colors, a Discord boost feature that allows roles to have gradient and holographic color styles in addition to single solid colors.
Key Changes
- Introduces
RoleColorsentity class to represent up to three color components (primary, secondary, tertiary) for roles - Adds new methods
setGradientColors()anduseHolographicStyle()toRoleActionandRoleManagerfor configuring enhanced colors - Deprecates existing single-color methods (
getColor(),getColorRaw()) in favor of the newgetColors()API
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| RoleColors.java | New entity class representing role color components with support for solid, gradient, and holographic styles |
| RoleActionImpl.java | Updated to use RoleColors instead of single integer color value |
| RoleManagerImpl.java | Updated color management to support RoleColors |
| RoleImpl.java | Stores three color components (primary, secondary, tertiary) instead of single color |
| DetachedRoleImpl.java | Mirrors RoleImpl changes for detached entities |
| MemberImpl.java | Removed deprecated color methods now implemented in MemberMixin |
| DetachedMemberImpl.java | Removed deprecated color methods now implemented in MemberMixin |
| MemberMixin.java | Implements getColors() to return colors from highest non-default role |
| GuildRoleUpdateHandler.java | Handles color update events and maintains backward compatibility with deprecated RoleUpdateColorEvent |
| RoleUpdateColorsEvent.java | New event for role color updates |
| RoleUpdateColorEvent.java | Deprecated in favor of RoleUpdateColorsEvent |
| Role.java | Adds getColors() and deprecates getColor()/getColorRaw() |
| Member.java | Adds getColors() and deprecates getColor()/getColorRaw() |
| RoleAction.java | Adds setColors(), setGradientColors(), and useHolographicStyle() methods |
| RoleManager.java | Adds setColors(), setGradientColors(), and useHolographicStyle() methods |
| AbstractEntityBuilder.java | Adds createRoleColors() helper to deserialize color data from JSON |
| ListenerAdapter.java | Adds onRoleUpdateColors() and deprecates onRoleUpdateColor() |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b59f6ea to
336dc28
Compare
MrPowerGamerBR
pushed a commit
to LorittaBot/DeviousJDA
that referenced
this pull request
Dec 13, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Pull Request Etiquette
./gradlew formatChanges
Closes Issue: NaN
Description
This adds support for enhanced role colors (boost feature).