class Sticker
extends
Baseexport class Sticker extends Base
Represents a Sticker.
readonlyDate createdAt :
The time the sticker was created at
readonlynumber createdTimestamp :
The timestamp the sticker was created at
StickerFormatType format :
The format of the sticker
Snowflake id :
The sticker's id
string name :
The name of the sticker
readonlyboolean partial :
Whether this sticker is partial
StickerType | null type :
The type of the sticker
readonlystring url :
A link to the sticker If the sticker's format is StickerFormatType, 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);
editoptions?: 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);
fetchPackPromise<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.