Action API object

Hierarchy

Implements

Constructors

Properties

Accessors

Constructors

  • Builds a reply buttons component for an Interactive message

    Parameters

    • Rest ...button: AtLeastOne<Button>

      Buttons to be used in the reply buttons. Each button title must be unique within the message. Emojis are supported, markdown is not. Must be between 1 and 3 buttons.

    Returns ActionButtons

    Throws

    If more than 3 buttons are provided

    Throws

    If two or more buttons have the same id

    Throws

    If two or more buttons have the same title

Properties

buttons: Button[]

The buttons of the action

Accessors

Generated using TypeDoc