GuildStickerManager

export class GuildStickerManager extends CachedManager<Snowflake, Sticker, StickerResolvable>
export class GuildStickerManager extends CachedManager<Snowflake, Sticker, StickerResolvable>
Manages API methods for Guild Stickers and stores their cache.
Readonly
cache:Collection<K, Holds>
The cache of items for this manager.
Inherited from DataManager
Readonly
client:Client
The client that instantiated this Manager
Inherited from BaseManager
guild:Guild
The guild this manager belongs to
Readonly
holds:Constructable<Holds>
The data structure belonging to this manager.
Inherited from DataManager
create(options):Promise<Sticker>
Creates a new custom sticker in the guild.
Returns
The created sticker
NameTypeOptionalDescription
optionsGuildStickerCreateOptionsNoOptions for creating a guild sticker
delete(sticker, reason?):Promise<void>
Deletes a sticker.
NameTypeOptionalDescription
stickerStickerResolvableNoThe sticker to delete
reasonstringYesReason for deleting this sticker
edit(sticker, options?):Promise<Sticker>
Edits a sticker.
NameTypeOptionalDescription
stickerStickerResolvableNoThe sticker to edit
optionsGuildStickerEditOptionsYesThe new data for the sticker
fetch(id, options?):Promise<Sticker>
Obtains one or more stickers from Discord, or the sticker cache if they're already available.
NameTypeOptionalDescription
idSnowflakeNoThe Sticker's id
optionsBaseFetchOptionsYesAdditional options for this fetch
fetchUser(sticker):Promise<User | null>
Fetches the user who uploaded this sticker, if this is a guild sticker.
NameTypeOptionalDescription
stickerStickerResolvableNoThe sticker to fetch the user for
resolve(idOrInstance):Holds
Resolves a data entry to a data Object.
Returns
An instance from this Manager
NameTypeOptionalDescription
idOrInstanceHoldsNoThe id or instance of something in this Manager
resolveId(idOrInstance):K
Resolves a data entry to an instance id.
Returns
NameTypeOptionalDescription
idOrInstanceK | HoldsNoThe id or instance of something in this Manager
valueOf():Collection<K, Holds>