class Sticker
extends
Baseexport class Sticker extends BaseRepresents a Sticker.
readonlycreatedAt : Date
The time the sticker was created at
readonlycreatedTimestamp : number
The timestamp the sticker was created at
format : StickerFormatType
The format of the sticker
id : Snowflake
The sticker's id
name : string
The name of the sticker
readonlypartial : boolean
Whether this sticker is partial
type : StickerType | null
The type of the sticker
readonlyurl : string
A link to the sticker If the sticker's format is StickerFormatType.Lottie, it returns the URL of the Lottie JSON file.
Deletes the sticker.
Examples:
// Delete a message
sticker.delete()
.then(sticker => console.log(`Deleted sticker ${sticker.name}`))
.catch(console.error); edit(options?: GuildStickerEditOptions) : Promise<Sticker>
options?: GuildStickerEditOptions
Edits the sticker.
Examples:
// Update the name of a sticker
sticker.edit({ name: 'new name' })
.then(sticker => console.log(`Updated the name of the sticker to ${sticker.name}`))
.catch(console.error);fetchPack() : Promise<StickerPack | null>
Fetches the pack that contains this sticker.
Returns: The sticker pack or null if this sticker does not belong to one.
Fetches the user who uploaded this sticker, if this is a guild sticker.