File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,9 @@ class StickerPack extends Base {
50
50
51
51
/**
52
52
* The id of the sticker pack's banner image
53
- * @type {Snowflake }
53
+ * @type {? Snowflake }
54
54
*/
55
- this . bannerId = pack . banner_asset_id ;
55
+ this . bannerId = pack . banner_asset_id ?? null ;
56
56
}
57
57
58
58
/**
@@ -85,10 +85,10 @@ class StickerPack extends Base {
85
85
/**
86
86
* The URL to this sticker pack's banner.
87
87
* @param {StaticImageURLOptions } [options={}] Options for the Image URL
88
- * @returns {string }
88
+ * @returns {? string }
89
89
*/
90
90
bannerURL ( { format, size } = { } ) {
91
- return this . client . rest . cdn . StickerPackBanner ( this . bannerId , format , size ) ;
91
+ return this . bannerId && this . client . rest . cdn . StickerPackBanner ( this . bannerId , format , size ) ;
92
92
}
93
93
}
94
94
Original file line number Diff line number Diff line change @@ -2102,15 +2102,15 @@ export class StickerPack extends Base {
2102
2102
private constructor ( client : Client , data : RawStickerPackData ) ;
2103
2103
public readonly createdTimestamp : number ;
2104
2104
public readonly createdAt : Date ;
2105
- public bannerId : Snowflake ;
2105
+ public bannerId : Snowflake | null ;
2106
2106
public readonly coverSticker : Sticker | null ;
2107
2107
public coverStickerId : Snowflake | null ;
2108
2108
public description : string ;
2109
2109
public id : Snowflake ;
2110
2110
public name : string ;
2111
2111
public skuId : Snowflake ;
2112
2112
public stickers : Collection < Snowflake , Sticker > ;
2113
- public bannerURL ( options ?: StaticImageURLOptions ) : string ;
2113
+ public bannerURL ( options ?: StaticImageURLOptions ) : string | null ;
2114
2114
}
2115
2115
2116
2116
/** @deprecated See [Self-serve Game Selling Deprecation](https://support-dev.discord.com/hc/en-us/articles/4414590563479) for more information */
You can’t perform that action at this time.
0 commit comments