Skip to content

Commit 5bd5eff

Browse files
committed
feat(APIUser): add collectibles
1 parent b2da18c commit 5bd5eff

File tree

4 files changed

+232
-0
lines changed

4 files changed

+232
-0
lines changed

deno/payloads/v10/user.ts

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deno/payloads/v9/user.ts

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

payloads/v10/user.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff 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';

payloads/v9/user.ts

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff 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';

0 commit comments

Comments
 (0)