feat: Role gradient colours

#10986
This commit is contained in:
Elysia
2025-09-13 14:33:48 +07:00
parent c7b6eee9fb
commit 6b8c9c8275
5 changed files with 172 additions and 12 deletions

View File

@@ -1044,6 +1044,21 @@ exports.Colors = {
NOT_QUITE_BLACK: 0x23272a,
};
/**
* Holographic color values for role styling.
* When using `tertiaryColor`, the API enforces these specific values for holographic effect.
*
* * PRIMARY: 11127295 (0xA9FFFF)
* * SECONDARY: 16759788 (0xFFCCCC)
* * TERTIARY: 16761760 (0xFFE0A0)
* @typedef {Object<string, number>} HolographicStyle
*/
exports.HolographicStyles = {
PRIMARY: 11_127_295,
SECONDARY: 16_759_788,
TERTIARY: 16_761_760,
};
/**
* The value set for the explicit content filter levels for a guild:
* * DISABLED
@@ -1895,4 +1910,5 @@ function createEnum(keys) {
* @property {Object<WebhookType, number>} WebhookTypes The value set for a webhooks type.
* @property {WSCodes} WSCodes The types of WebSocket error codes.
* @property {Object<WSEventType, WSEventType>} WSEvents The type of a WebSocket message event.
* @property {HolographicStyle} HolographicStyles Holographic color values for role styling.
*/