Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/managers/stickers.ts>StickersManager

An easy to use Discord API Library for Deno.
Go to Latest
class StickersManager
import { StickersManager } from "https://deno.land/x/harmony@v2.6.0/src/managers/stickers.ts";

Constructors

new
StickersManager(client: Client)

Methods

create(guild: Guild | string, options: CreateGuildStickerOptions): Promise<MessageSticker>

Creates a new Guild Sticker

delete(
guild: string | Guild,
id: string | MessageSticker,
reason?: string,
): Promise<boolean>

Delete a Guild Sticker

edit(
guild: Guild | string,
sticker: string | MessageSticker,
options: Partial<ModifyGuildStickerOptions>,
): Promise<MessageSticker>

Edit an existing Guild Sticker

fetch(sticker: MessageSticker | string): Promise<MessageSticker>

Fetches a Sticker

fetchAll(guild: string | Guild): Promise<MessageSticker[]>

Fetches all Guild Stickers from API (and caches them)

fromPayload(stickers: MessageStickerPayload[]): Promise<void>

Fetches list of Nitro Sticker Packs. These are not cached.