Manages API methods for Guild Stickers and stores their cache.
Extends
CachedManager<Snowflake, Sticker, StickerResolvable>The cache of items for this manager.
Inherited from DataManagerThe client that instantiated this Manager
Inherited from BaseManagerThe data structure belonging to this manager.
Inherited from DataManagerCreates a new custom sticker in the guild.
Returns
The created stickerExample
Example
Name | Type | Optional | Description |
---|---|---|---|
options | GuildStickerCreateOptions | No | Options for creating a guild sticker |
Deletes a sticker.
Name | Type | Optional | Description |
---|---|---|---|
sticker | StickerResolvable | No | The sticker to delete |
reason | string | Yes | Reason for deleting this sticker |
Edits a sticker.
Name | Type | Optional | Description |
---|---|---|---|
sticker | StickerResolvable | No | The sticker to edit |
options | GuildStickerEditOptions | Yes | The new data for the sticker |
Obtains one or more stickers from Discord, or the sticker cache if they're already available.
Example
Example
Name | Type | Optional | Description |
---|---|---|---|
id | Snowflake | No | The Sticker's id |
options | BaseFetchOptions | Yes | Additional options for this fetch |
Fetches the user who uploaded this sticker, if this is a guild sticker.
Name | Type | Optional | Description |
---|---|---|---|
sticker | StickerResolvable | No | The sticker to fetch the user for |
Resolves a StickerResolvable to a Sticker object.
Name | Type | Optional | Description |
---|---|---|---|
sticker | StickerResolvable | No | The Sticker resolvable to identify |
Resolves a StickerResolvable to a Sticker id string.
Name | Type | Optional | Description |
---|---|---|---|
sticker | StickerResolvable | No | The Sticker resolvable to identify |