diff --git a/deno/payloads/v8/guild.ts b/deno/payloads/v8/guild.ts index c6346d8a..ec2a2e16 100644 --- a/deno/payloads/v8/guild.ts +++ b/deno/payloads/v8/guild.ts @@ -457,6 +457,10 @@ export enum GuildFeature { */ Partnered = 'PARTNERED', RelayEnabled = 'RELAY_ENABLED', + /** + * Guild is able to set role icons + */ + RoleIcons = 'ROLE_ICONS', /** * Guild has access to set a vanity URL */ diff --git a/deno/payloads/v8/permissions.ts b/deno/payloads/v8/permissions.ts index 257b5dcf..a3289879 100644 --- a/deno/payloads/v8/permissions.ts +++ b/deno/payloads/v8/permissions.ts @@ -75,6 +75,14 @@ export interface APIRole { * If this role is pinned in the user listing */ hoist: boolean; + /** + * The role icon hash + */ + icon?: string; + /** + * The role unicode emoji as a standard emoji + */ + unicode_emoji?: string; /** * Position of this role */ diff --git a/deno/payloads/v9/guild.ts b/deno/payloads/v9/guild.ts index 12d1ec7c..d7b5db90 100644 --- a/deno/payloads/v9/guild.ts +++ b/deno/payloads/v9/guild.ts @@ -465,6 +465,10 @@ export enum GuildFeature { */ Partnered = 'PARTNERED', RelayEnabled = 'RELAY_ENABLED', + /** + * Guild is able to set role icons + */ + RoleIcons = 'ROLE_ICONS', /** * Guild has access to set a vanity URL */ diff --git a/deno/payloads/v9/permissions.ts b/deno/payloads/v9/permissions.ts index ce1e8100..4c3a0188 100644 --- a/deno/payloads/v9/permissions.ts +++ b/deno/payloads/v9/permissions.ts @@ -79,6 +79,14 @@ export interface APIRole { * If this role is pinned in the user listing */ hoist: boolean; + /** + * The role icon hash + */ + icon?: string; + /** + * The role unicode emoji as a standard emoji + */ + unicode_emoji?: string; /** * Position of this role */ diff --git a/deno/rest/v8/guild.ts b/deno/rest/v8/guild.ts index 798253c2..dbfc1775 100644 --- a/deno/rest/v8/guild.ts +++ b/deno/rest/v8/guild.ts @@ -525,6 +525,14 @@ export interface RESTPostAPIGuildRoleJSONBody { * @default false */ hoist?: boolean | null; + /** + * The role's icon image (if the guild has the `ROLE_ICONS` feature) + */ + icon?: string | null; + /** + * The role's unicode emoji as a standard emoji (if the guild has the `ROLE_ICONS` feature) + */ + unicode_emoji?: string | null; /** * Whether the role should be mentionable * @@ -577,6 +585,14 @@ export interface RESTPatchAPIGuildRoleJSONBody { * Whether the role should be displayed separately in the sidebar */ hoist?: boolean | null; + /** + * The role's icon image (if the guild has the `ROLE_ICONS` feature) + */ + icon?: string | null; + /** + * The role's unicode emoji as a standard emoji (if the guild has the `ROLE_ICONS` feature) + */ + unicode_emoji?: string | null; /** * Whether the role should be mentionable */ diff --git a/deno/rest/v9/guild.ts b/deno/rest/v9/guild.ts index 1230b11d..b624ec10 100644 --- a/deno/rest/v9/guild.ts +++ b/deno/rest/v9/guild.ts @@ -531,6 +531,14 @@ export interface RESTPostAPIGuildRoleJSONBody { * @default false */ hoist?: boolean | null; + /** + * The role's icon image (if the guild has the `ROLE_ICONS` feature) + */ + icon?: string | null; + /** + * The role's unicode emoji as a standard emoji (if the guild has the `ROLE_ICONS` feature) + */ + unicode_emoji?: string | null; /** * Whether the role should be mentionable * @@ -583,6 +591,14 @@ export interface RESTPatchAPIGuildRoleJSONBody { * Whether the role should be displayed separately in the sidebar */ hoist?: boolean | null; + /** + * The role's icon image (if the guild has the `ROLE_ICONS` feature) + */ + icon?: string | null; + /** + * The role's unicode emoji as a standard emoji (if the guild has the `ROLE_ICONS` feature) + */ + unicode_emoji?: string | null; /** * Whether the role should be mentionable */ diff --git a/payloads/v8/guild.ts b/payloads/v8/guild.ts index 4df68aa4..992e6fb1 100644 --- a/payloads/v8/guild.ts +++ b/payloads/v8/guild.ts @@ -457,6 +457,10 @@ export const enum GuildFeature { */ Partnered = 'PARTNERED', RelayEnabled = 'RELAY_ENABLED', + /** + * Guild is able to set role icons + */ + RoleIcons = 'ROLE_ICONS', /** * Guild has access to set a vanity URL */ diff --git a/payloads/v8/permissions.ts b/payloads/v8/permissions.ts index e52dfbd6..7bad1180 100644 --- a/payloads/v8/permissions.ts +++ b/payloads/v8/permissions.ts @@ -75,6 +75,14 @@ export interface APIRole { * If this role is pinned in the user listing */ hoist: boolean; + /** + * The role icon hash + */ + icon?: string; + /** + * The role unicode emoji as a standard emoji + */ + unicode_emoji?: string; /** * Position of this role */ diff --git a/payloads/v9/guild.ts b/payloads/v9/guild.ts index da066431..0a9ed606 100644 --- a/payloads/v9/guild.ts +++ b/payloads/v9/guild.ts @@ -465,6 +465,10 @@ export const enum GuildFeature { */ Partnered = 'PARTNERED', RelayEnabled = 'RELAY_ENABLED', + /** + * Guild is able to set role icons + */ + RoleIcons = 'ROLE_ICONS', /** * Guild has access to set a vanity URL */ diff --git a/payloads/v9/permissions.ts b/payloads/v9/permissions.ts index c9aa6626..9a777fce 100644 --- a/payloads/v9/permissions.ts +++ b/payloads/v9/permissions.ts @@ -79,6 +79,14 @@ export interface APIRole { * If this role is pinned in the user listing */ hoist: boolean; + /** + * The role icon hash + */ + icon?: string; + /** + * The role unicode emoji as a standard emoji + */ + unicode_emoji?: string; /** * Position of this role */ diff --git a/rest/v8/guild.ts b/rest/v8/guild.ts index fa2ab4e8..0b757f3e 100644 --- a/rest/v8/guild.ts +++ b/rest/v8/guild.ts @@ -525,6 +525,14 @@ export interface RESTPostAPIGuildRoleJSONBody { * @default false */ hoist?: boolean | null; + /** + * The role's icon image (if the guild has the `ROLE_ICONS` feature) + */ + icon?: string | null; + /** + * The role's unicode emoji as a standard emoji (if the guild has the `ROLE_ICONS` feature) + */ + unicode_emoji?: string | null; /** * Whether the role should be mentionable * @@ -577,6 +585,14 @@ export interface RESTPatchAPIGuildRoleJSONBody { * Whether the role should be displayed separately in the sidebar */ hoist?: boolean | null; + /** + * The role's icon image (if the guild has the `ROLE_ICONS` feature) + */ + icon?: string | null; + /** + * The role's unicode emoji as a standard emoji (if the guild has the `ROLE_ICONS` feature) + */ + unicode_emoji?: string | null; /** * Whether the role should be mentionable */ diff --git a/rest/v9/guild.ts b/rest/v9/guild.ts index e8897429..d8e17b35 100644 --- a/rest/v9/guild.ts +++ b/rest/v9/guild.ts @@ -531,6 +531,14 @@ export interface RESTPostAPIGuildRoleJSONBody { * @default false */ hoist?: boolean | null; + /** + * The role's icon image (if the guild has the `ROLE_ICONS` feature) + */ + icon?: string | null; + /** + * The role's unicode emoji as a standard emoji (if the guild has the `ROLE_ICONS` feature) + */ + unicode_emoji?: string | null; /** * Whether the role should be mentionable * @@ -583,6 +591,14 @@ export interface RESTPatchAPIGuildRoleJSONBody { * Whether the role should be displayed separately in the sidebar */ hoist?: boolean | null; + /** + * The role's icon image (if the guild has the `ROLE_ICONS` feature) + */ + icon?: string | null; + /** + * The role's unicode emoji as a standard emoji (if the guild has the `ROLE_ICONS` feature) + */ + unicode_emoji?: string | null; /** * Whether the role should be mentionable */