fix(StickerPack): Optional banner_asset_id (#270)

BREAKING CHANGE: `banner_asset_id` is now optional. Reference PR: https://github.com/discord/discord-api-docs/pull/4245
This commit is contained in:
Jiralite
2021-12-16 18:20:20 +00:00
committed by GitHub
parent 2c72242a03
commit 7eee39d86c
4 changed files with 8 additions and 8 deletions

View File

@@ -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 {
/**
@@ -123,5 +123,5 @@ export interface APIStickerPack {
/**
* ID of the sticker pack's banner image
*/
banner_asset_id: Snowflake;
banner_asset_id?: Snowflake;
}

View File

@@ -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 {
/**
@@ -123,5 +123,5 @@ export interface APIStickerPack {
/**
* ID of the sticker pack's banner image
*/
banner_asset_id: Snowflake;
banner_asset_id?: Snowflake;
}

View File

@@ -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 {
/**
@@ -123,5 +123,5 @@ export interface APIStickerPack {
/**
* ID of the sticker pack's banner image
*/
banner_asset_id: Snowflake;
banner_asset_id?: Snowflake;
}

View File

@@ -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 {
/**
@@ -123,5 +123,5 @@ export interface APIStickerPack {
/**
* ID of the sticker pack's banner image
*/
banner_asset_id: Snowflake;
banner_asset_id?: Snowflake;
}