diff --git a/OpenAPI.json b/OpenAPI.json index be929f3..135724d 100644 --- a/OpenAPI.json +++ b/OpenAPI.json @@ -6056,6 +6056,7 @@ "enum": [ "Online", "Idle", + "Focus", "Busy", "Invisible" ] @@ -7726,10 +7727,11 @@ "nullable": true }, "colour": { - "description": "Replace the display role colour shown on this message\n\nMust have `ManageRole` permission to use\n\nThis can be any valid CSS colour", + "description": "Replace the display role colour shown on this message\n\nMust have `ManageRole` permission to use", "type": "string", - "maxLength": 32, + "maxLength": 128, "minLength": 1, + "pattern": "(?i)^(?:[a-z ]+|var\\(--[a-z\\d-]+\\)|rgba?\\([\\d, ]+\\)|#[a-f0-9]+|(repeating-)?(linear|conic|radial)-gradient\\(([a-z ]+|var\\(--[a-z\\d-]+\\)|rgba?\\([\\d, ]+\\)|#[a-f0-9]+|\\d+deg)([ ]+(\\d{1,3}%|0))?(,[ ]*([a-z ]+|var\\(--[a-z\\d-]+\\)|rgba?\\([\\d, ]+\\)|#[a-f0-9]+)([ ]+(\\d{1,3}%|0))?)+\\))$", "nullable": true } } diff --git a/package.json b/package.json index 16d4b0a..2303de6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "revolt-api", - "version": "0.5.5-3", + "version": "0.5.5-4", "description": "Revolt API Library", "main": "dist/index.js", "module": "esm/index.js", diff --git a/src/schema.ts b/src/schema.ts index f814c69..c788752 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -819,7 +819,7 @@ export interface components { * @description Presence status * @enum {string} */ - Presence: "Online" | "Idle" | "Busy" | "Invisible"; + Presence: "Online" | "Idle" | "Focus" | "Busy" | "Invisible"; /** @description User's profile */ UserProfile: { /** @description Text content on user's profile */ @@ -1424,8 +1424,6 @@ export interface components { * @description Replace the display role colour shown on this message * * Must have `ManageRole` permission to use - * - * This can be any valid CSS colour */ colour?: string | null; };