Skip to content

Commit

Permalink
fix(StickerPack): Optional banner_asset_id (#270)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `banner_asset_id` is now optional. Reference PR: discord/discord-api-docs#4245
  • Loading branch information
Jiralite committed Dec 16, 2021
1 parent 2c72242 commit 7eee39d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions deno/payloads/v8/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export enum StickerFormatType {
export type APIStickerItem = Pick<APISticker, 'id' | 'name' | 'format_type'>;

/**
* https://discord.com/developers/docs/resources/sticker#sticker-object
* https://discord.com/developers/docs/resources/sticker#sticker-pack-object
*/
export interface APIStickerPack {
/**
Expand Down Expand Up @@ -123,5 +123,5 @@ export interface APIStickerPack {
/**
* ID of the sticker pack's banner image
*/
banner_asset_id: Snowflake;
banner_asset_id?: Snowflake;
}
4 changes: 2 additions & 2 deletions deno/payloads/v9/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export enum StickerFormatType {
export type APIStickerItem = Pick<APISticker, 'id' | 'name' | 'format_type'>;

/**
* https://discord.com/developers/docs/resources/sticker#sticker-object
* https://discord.com/developers/docs/resources/sticker#sticker-pack-object
*/
export interface APIStickerPack {
/**
Expand Down Expand Up @@ -123,5 +123,5 @@ export interface APIStickerPack {
/**
* ID of the sticker pack's banner image
*/
banner_asset_id: Snowflake;
banner_asset_id?: Snowflake;
}
4 changes: 2 additions & 2 deletions payloads/v8/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const enum StickerFormatType {
export type APIStickerItem = Pick<APISticker, 'id' | 'name' | 'format_type'>;

/**
* https://discord.com/developers/docs/resources/sticker#sticker-object
* https://discord.com/developers/docs/resources/sticker#sticker-pack-object
*/
export interface APIStickerPack {
/**
Expand Down Expand Up @@ -123,5 +123,5 @@ export interface APIStickerPack {
/**
* ID of the sticker pack's banner image
*/
banner_asset_id: Snowflake;
banner_asset_id?: Snowflake;
}
4 changes: 2 additions & 2 deletions payloads/v9/sticker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const enum StickerFormatType {
export type APIStickerItem = Pick<APISticker, 'id' | 'name' | 'format_type'>;

/**
* https://discord.com/developers/docs/resources/sticker#sticker-object
* https://discord.com/developers/docs/resources/sticker#sticker-pack-object
*/
export interface APIStickerPack {
/**
Expand Down Expand Up @@ -123,5 +123,5 @@ export interface APIStickerPack {
/**
* ID of the sticker pack's banner image
*/
banner_asset_id: Snowflake;
banner_asset_id?: Snowflake;
}

0 comments on commit 7eee39d

Please sign in to comment.