Button API object

Constructors

Properties

Constructors

  • Builds a button component for ActionButtons

    Parameters

    • id: string

      Unique identifier for your button. It cannot have leading or trailing spaces. This ID is returned in the webhook when the button is clicked by the user. Maximum length: 256 characters.

    • title: string

      Button title. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Maximum length: 20 characters.

    Returns Button

    If id is over 256 characters

    If id is malformed

    If title is an empty string

    If title is over 20 characters

Properties

reply: {
    id: string;
    title: string;
}

The reply object of the row

Type declaration

  • id: string

    The id of the row

  • title: string

    The title of the row

type: "reply"

The type of the button