The manager of reactions that belong to a message.

Example

new MessageReactionManager(message);

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

This cache of the manager.

client: Client
message: Message

Methods

  • Add a reaction to the message.

    Example

    reactions.add(123);
    

    Parameters

    • emojiId: number

      The ID of the emoji to react with.

    Returns Promise<void>

  • Remove a reaction from message.

    Example

    reactions.remove(123);
    

    Parameters

    • emojiId: number

      The ID of the emoji to remove.

    Returns Promise<void>

  • Set the maximum cache size of the manager.

    Returns

    The manager.

    Example

    manager.setMaxCache(100);
    

    Parameters

    • maxSize: number

      The maximum size of the cache.

    Returns MessageReactionManager