bothy-sdk
    Preparing search index...

    Interface ButtonOptions

    Options of button.

    interface ButtonOptions {
        expiresAt?: number | Date;
        icon?: string;
        requiredCapability?: string;
        restrictedTo?: string;
        settings?: SdkSettings;
        singleUse?: boolean;
        style?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    expiresAt?: number | Date

    Expiry as Unix milliseconds or a Date; the server's default applies when left out.

    icon?: string

    Optional semantic icon name of the design system; the server checks the name.

    requiredCapability?: string

    A capability the person needs, for example approve_actions.

    restrictedTo?: string

    any, run_starter or owner (09 11.2).

    settings?: SdkSettings

    Source of the limits (default DEFAULTS).

    singleUse?: boolean

    Whether using it disables the other single-use components of the message (09 11.3); the server's default applies when left out.

    style?: string

    One of BUTTON_STYLES (default secondary).