File tree Expand file tree Collapse file tree 4 files changed +232
-0
lines changed Expand file tree Collapse file tree 4 files changed +232
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ export interface APIUser {
9696 * @see {@link https://discord.com/developers/docs/resources/user#avatar-decoration-data-object }
9797 */
9898 avatar_decoration_data ?: APIAvatarDecorationData | null ;
99+ /**
100+ * The data for the user's collectibles
101+ *
102+ * @see {@link https://discord.com/developers/docs/resources/user#collectibles }
103+ */
104+ collectibles ?: APICollectibles | null ;
99105}
100106
101107/**
@@ -348,3 +354,55 @@ export interface APIAvatarDecorationData {
348354 */
349355 sku_id : Snowflake ;
350356}
357+
358+ /**
359+ * The collectibles the user has, excluding Avatar Decorations and Profile Effects.
360+ *
361+ * @see {@link https://discord.com/developers/docs/resources/user#collectibles }
362+ */
363+ export interface APICollectibles {
364+ /**
365+ * Object mapping of {@link APINameplateData}
366+ */
367+ nameplate ?: APINameplateData ;
368+ }
369+
370+ /**
371+ * @see {@link https://discord.com/developers/docs/resources/user#nameplate }
372+ */
373+ export interface APINameplateData {
374+ /**
375+ * ID of the nameplate SKU
376+ */
377+ sku_id : Snowflake ;
378+ /**
379+ * Path to the nameplate asset
380+ *
381+ * @example `nameplates/nameplates/twilight/`
382+ */
383+ asset : string ;
384+ /**
385+ * The label of this nameplate. Currently unused
386+ */
387+ label : string ;
388+ /**
389+ * Background color of the nameplate
390+ */
391+ palette : APINameplatePalette ;
392+ }
393+
394+ /**
395+ * Background color of a nameplate.
396+ */
397+ export type APINameplatePalette =
398+ | 'berry'
399+ | 'bubble_gum'
400+ | 'clover'
401+ | 'cobalt'
402+ | 'crimson'
403+ | 'forest'
404+ | 'lemon'
405+ | 'sky'
406+ | 'teal'
407+ | 'violet'
408+ | 'white' ;
Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ export interface APIUser {
9696 * @see {@link https://discord.com/developers/docs/resources/user#avatar-decoration-data-object }
9797 */
9898 avatar_decoration_data ?: APIAvatarDecorationData | null ;
99+ /**
100+ * The data for the user's collectibles
101+ *
102+ * @see {@link https://discord.com/developers/docs/resources/user#collectibles }
103+ */
104+ collectibles ?: APICollectibles | null ;
99105}
100106
101107/**
@@ -348,3 +354,55 @@ export interface APIAvatarDecorationData {
348354 */
349355 sku_id : Snowflake ;
350356}
357+
358+ /**
359+ * The collectibles the user has, excluding Avatar Decorations and Profile Effects.
360+ *
361+ * @see {@link https://discord.com/developers/docs/resources/user#collectibles }
362+ */
363+ export interface APICollectibles {
364+ /**
365+ * Object mapping of {@link APINameplateData}
366+ */
367+ nameplate ?: APINameplateData ;
368+ }
369+
370+ /**
371+ * @see {@link https://discord.com/developers/docs/resources/user#nameplate }
372+ */
373+ export interface APINameplateData {
374+ /**
375+ * ID of the nameplate SKU
376+ */
377+ sku_id : Snowflake ;
378+ /**
379+ * Path to the nameplate asset
380+ *
381+ * @example `nameplates/nameplates/twilight/`
382+ */
383+ asset : string ;
384+ /**
385+ * The label of this nameplate. Currently unused
386+ */
387+ label : string ;
388+ /**
389+ * Background color of the nameplate
390+ */
391+ palette : APINameplatePalette ;
392+ }
393+
394+ /**
395+ * Background color of a nameplate.
396+ */
397+ export type APINameplatePalette =
398+ | 'berry'
399+ | 'bubble_gum'
400+ | 'clover'
401+ | 'cobalt'
402+ | 'crimson'
403+ | 'forest'
404+ | 'lemon'
405+ | 'sky'
406+ | 'teal'
407+ | 'violet'
408+ | 'white' ;
You can’t perform that action at this time.
0 commit comments