Class GlobalReactionManager

A class representing a global reaction manager that extends the CacheableStructManager class.

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

cache: Collection<string, MessageReaction> = ...
client: Client

Accessors

Methods

  • Adds a reaction emote to a message.

    Parameters

    • channelId: string

      The ID of the channel where the message was sent.

    • messageId: string

      The ID of the message.

    • emoteId: number

      The ID of the emote to add.

    Returns Promise<void>

    A Promise that resolves with no value upon successful completion.

  • Deletes either a whole reaction emote from a message or a specific user's if a userId is provided.

    Parameters

    • channelId: string

      The ID of the channel where the message was sent.

    • messageId: string

      The ID of the message.

    • emoteId: number

      The ID of the emote to delete.

    • Optional userId: string

    Returns Promise<void>

    A Promise that resolves with no value upon successful completion.

Generated using TypeDoc