Button Parameter API object

Hierarchy

  • ButtonParameter

Constructors

Properties

Constructors

  • Builds a button parameter for a ButtonComponent

    Parameters

    • param: string

      Developer-provided data that is used to fill in the template.

    • type: "text" | "payload"

      The type of the button

    Returns ButtonParameter

    Throws

    If param is an empty string

Properties

payload?: string

The payload of the button

text?: string

The text of the button

type: "text" | "payload"

The type of the button

Generated using TypeDoc