Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StickerManager

Hierarchy

  • StickerManager

Index

Constructors

  • Parameters

    • token: string

      Bot's token

    • tokenType: string
    • version: APIVersions

      API Version

    Returns StickerManager

Methods

  • Create a guild sticker.

    Parameters

    • guildId: string

      The ID of the guild you want to create a sticker in.

    • options: CreateStickerOptions

      CreateStickerOptions

    • Optional reason: string

    Returns Promise<Sticker>

    A Sticker object

  • deleteGuilSticker(guildId: string, stickerId: string, reason?: string): Promise<void>
  • Deletes a guild sticker.

    Parameters

    • guildId: string

      The ID of the guild you want to delete the sticker from.

    • stickerId: string

      The ID of the sticker to delete.

    • Optional reason: string

    Returns Promise<void>

  • getGuildSticker(guildId: string, stickerId: string): Promise<Sticker>
  • Get a guild sticker

    Parameters

    • guildId: string

      The ID of the guild you want to get the sticker from.

    • stickerId: string

      The ID of the sticker you want to get.

    Returns Promise<Sticker>

    A Sticker object.

  • getSticker(stickerId: string): Promise<Sticker>
  • Get a sticker

    Parameters

    • stickerId: string

      The ID of the sticker you want to get.

    Returns Promise<Sticker>

    A Sticker object.

  • listGuildStickers(guildId: string): Promise<Sticker[]>
  • List all stickers in a guild

    Parameters

    • guildId: string

      The ID of the guild you want to get the stickers from.

    Returns Promise<Sticker[]>

    An array of stickers

  • Lists all the Nitro Sticker Packs.

    Returns Promise<StickerPacksResponse>

    A list of sticker packs

  • Modify a guild sticker

    Parameters

    • guildId: string

      The ID of the guild you want to modify the sticker in.

    • stickerId: string

      The ID of the sticker you want to modify.

    • options: ModifyStickerOptions

      ModifyStickerOptions

    • Optional reason: string

    Returns Promise<Sticker>

    A Sticker object

Properties

version: APIVersions

API Version

#token: string

Bot's token

#tokenType: string

Token type

Generated using TypeDoc