diff --git a/deno/payloads/v10/user.ts b/deno/payloads/v10/user.ts index 4ebfb706..76883dac 100644 --- a/deno/payloads/v10/user.ts +++ b/deno/payloads/v10/user.ts @@ -96,6 +96,12 @@ export interface APIUser { * @see {@link https://discord.com/developers/docs/resources/user#avatar-decoration-data-object} */ avatar_decoration_data?: APIAvatarDecorationData | null; + /** + * The data for the user's collectibles + * + * @see {@link https://discord.com/developers/docs/resources/user#collectibles} + */ + collectibles?: APICollectibles | null; } /** @@ -348,3 +354,56 @@ export interface APIAvatarDecorationData { */ sku_id: Snowflake; } + +/** + * The collectibles the user has, excluding Avatar Decorations and Profile Effects. + * + * @see {@link https://discord.com/developers/docs/resources/user#collectibles} + */ +export interface APICollectibles { + /** + * Object mapping of {@link APINameplateData} + */ + nameplate?: APINameplateData; +} + +/** + * @see {@link https://discord.com/developers/docs/resources/user#nameplate} + */ +export interface APINameplateData { + /** + * ID of the nameplate SKU + */ + sku_id: Snowflake; + /** + * Path to the nameplate asset + * + * @example `nameplates/nameplates/twilight/` + */ + asset: string; + /** + * The label of this nameplate. Currently unused + */ + label: string; + /** + * Background color of the nameplate + */ + palette: NameplatePalette; +} + +/** + * Background color of a nameplate. + */ +export enum NameplatePalette { + Berry = 'berry', + BubbleGum = 'bubble_gum', + Clover = 'clover', + Cobalt = 'cobalt', + Crimson = 'crimson', + Forest = 'forest', + Lemon = 'lemon', + Sky = 'sky', + Teal = 'teal', + Violet = 'violet', + White = 'white', +} diff --git a/deno/payloads/v9/user.ts b/deno/payloads/v9/user.ts index 4ebfb706..76883dac 100644 --- a/deno/payloads/v9/user.ts +++ b/deno/payloads/v9/user.ts @@ -96,6 +96,12 @@ export interface APIUser { * @see {@link https://discord.com/developers/docs/resources/user#avatar-decoration-data-object} */ avatar_decoration_data?: APIAvatarDecorationData | null; + /** + * The data for the user's collectibles + * + * @see {@link https://discord.com/developers/docs/resources/user#collectibles} + */ + collectibles?: APICollectibles | null; } /** @@ -348,3 +354,56 @@ export interface APIAvatarDecorationData { */ sku_id: Snowflake; } + +/** + * The collectibles the user has, excluding Avatar Decorations and Profile Effects. + * + * @see {@link https://discord.com/developers/docs/resources/user#collectibles} + */ +export interface APICollectibles { + /** + * Object mapping of {@link APINameplateData} + */ + nameplate?: APINameplateData; +} + +/** + * @see {@link https://discord.com/developers/docs/resources/user#nameplate} + */ +export interface APINameplateData { + /** + * ID of the nameplate SKU + */ + sku_id: Snowflake; + /** + * Path to the nameplate asset + * + * @example `nameplates/nameplates/twilight/` + */ + asset: string; + /** + * The label of this nameplate. Currently unused + */ + label: string; + /** + * Background color of the nameplate + */ + palette: NameplatePalette; +} + +/** + * Background color of a nameplate. + */ +export enum NameplatePalette { + Berry = 'berry', + BubbleGum = 'bubble_gum', + Clover = 'clover', + Cobalt = 'cobalt', + Crimson = 'crimson', + Forest = 'forest', + Lemon = 'lemon', + Sky = 'sky', + Teal = 'teal', + Violet = 'violet', + White = 'white', +} diff --git a/payloads/v10/user.ts b/payloads/v10/user.ts index 67eaa855..9707675a 100644 --- a/payloads/v10/user.ts +++ b/payloads/v10/user.ts @@ -96,6 +96,12 @@ export interface APIUser { * @see {@link https://discord.com/developers/docs/resources/user#avatar-decoration-data-object} */ avatar_decoration_data?: APIAvatarDecorationData | null; + /** + * The data for the user's collectibles + * + * @see {@link https://discord.com/developers/docs/resources/user#collectibles} + */ + collectibles?: APICollectibles | null; } /** @@ -348,3 +354,56 @@ export interface APIAvatarDecorationData { */ sku_id: Snowflake; } + +/** + * The collectibles the user has, excluding Avatar Decorations and Profile Effects. + * + * @see {@link https://discord.com/developers/docs/resources/user#collectibles} + */ +export interface APICollectibles { + /** + * Object mapping of {@link APINameplateData} + */ + nameplate?: APINameplateData; +} + +/** + * @see {@link https://discord.com/developers/docs/resources/user#nameplate} + */ +export interface APINameplateData { + /** + * ID of the nameplate SKU + */ + sku_id: Snowflake; + /** + * Path to the nameplate asset + * + * @example `nameplates/nameplates/twilight/` + */ + asset: string; + /** + * The label of this nameplate. Currently unused + */ + label: string; + /** + * Background color of the nameplate + */ + palette: NameplatePalette; +} + +/** + * Background color of a nameplate. + */ +export enum NameplatePalette { + Berry = 'berry', + BubbleGum = 'bubble_gum', + Clover = 'clover', + Cobalt = 'cobalt', + Crimson = 'crimson', + Forest = 'forest', + Lemon = 'lemon', + Sky = 'sky', + Teal = 'teal', + Violet = 'violet', + White = 'white', +} diff --git a/payloads/v9/user.ts b/payloads/v9/user.ts index 67eaa855..9707675a 100644 --- a/payloads/v9/user.ts +++ b/payloads/v9/user.ts @@ -96,6 +96,12 @@ export interface APIUser { * @see {@link https://discord.com/developers/docs/resources/user#avatar-decoration-data-object} */ avatar_decoration_data?: APIAvatarDecorationData | null; + /** + * The data for the user's collectibles + * + * @see {@link https://discord.com/developers/docs/resources/user#collectibles} + */ + collectibles?: APICollectibles | null; } /** @@ -348,3 +354,56 @@ export interface APIAvatarDecorationData { */ sku_id: Snowflake; } + +/** + * The collectibles the user has, excluding Avatar Decorations and Profile Effects. + * + * @see {@link https://discord.com/developers/docs/resources/user#collectibles} + */ +export interface APICollectibles { + /** + * Object mapping of {@link APINameplateData} + */ + nameplate?: APINameplateData; +} + +/** + * @see {@link https://discord.com/developers/docs/resources/user#nameplate} + */ +export interface APINameplateData { + /** + * ID of the nameplate SKU + */ + sku_id: Snowflake; + /** + * Path to the nameplate asset + * + * @example `nameplates/nameplates/twilight/` + */ + asset: string; + /** + * The label of this nameplate. Currently unused + */ + label: string; + /** + * Background color of the nameplate + */ + palette: NameplatePalette; +} + +/** + * Background color of a nameplate. + */ +export enum NameplatePalette { + Berry = 'berry', + BubbleGum = 'bubble_gum', + Clover = 'clover', + Cobalt = 'cobalt', + Crimson = 'crimson', + Forest = 'forest', + Lemon = 'lemon', + Sky = 'sky', + Teal = 'teal', + Violet = 'violet', + White = 'white', +}