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

x/harmony/src/managers/guildStickers.ts>GuildStickersManager

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

Constructors

new
GuildStickersManager(client: Client, guild: Guild)

Methods

array(): Promise<MessageSticker[]>

Returns an Array of all Stickers in this Guild

Creates a new Guild Sticker

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

Delete a Guild Sticker

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

Edit an existing Guild Sticker

fetch(id: string): Promise<MessageSticker>

Fetches Guild Sticker from API

fetchAll(): Promise<MessageSticker[]>

Fetches all Guild Stickers from API (and caches them)

flush(): Promise<void>

Purges Guild Sticker Cache

keys(): Promise<string[]>

Returns a list of IDs of all Stickers in this Guild