Reaction API object

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Create a Reaction object for the API

    Parameters

    • message_id: string

      The message's id (wamid) to react to

    • emoji: string = ""

      The emoji to react with, defaults to empty string to remove a reaction

    Returns Reaction

    Throws

    If a non-emoji or more than one emoji is provided

Properties

emoji: string

The reaction emoji

message_id: string

The message's id to react to

Accessors

Methods

  • Internal

    The message built as a string. In most cases it's just JSON.stringify(this)

    Returns string

Generated using TypeDoc