StickerPack
StickerPack ⇐ Base
Section titled “StickerPack ⇐ Base”Represents a sticker pack.
Kind: global class
Extends: Base
- StickerPack ⇐
Base- new StickerPack([data], client)
- .fetch() ⇒
Promise.<(Sticker|null)> - .bannerURL(options) ⇒
string|null
new StickerPack([data], client)
Section titled “new StickerPack([data], client)”Constructs a new instance of the class.
| Param | Type | Description |
|---|---|---|
| [data] | Object | The data object containing the properties for the instance. |
| client | Client | The client object. |
stickerPack.fetch() ⇒ Promise.<(Sticker|null)>
Section titled “stickerPack.fetch() ⇒ Promise.<(Sticker|null)>”Fetches the nitro pack with the specified ID from the client’s nitro packs.
Kind: instance method of StickerPack
Returns: Promise.<(Sticker|null)> - A promise that resolves to the found nitro pack or null if not found.
stickerPack.bannerURL(options) ⇒ string | null
Section titled “stickerPack.bannerURL(options) ⇒ string | null”Retrieves the URL of the banner image for the sticker pack.
Kind: instance method of StickerPack
Returns: string | null - The URL of the banner image, or null if the bannerAssetId is not set.
| Param | Type | Description |
|---|---|---|
| options | Object | The options for the banner image. |
| options.size | string | The desired size of the banner image. |
| options.format | string | The desired format of the banner image. |