For the complete documentation index, see llms.txt. This page is also available as Markdown.

ActionsBlock

init

Creates an ActionsBlock instance for the given event type and payload.

Name
Type
Required
Default
Description

No arguments

Return: The ActionsBlock instance.

id

Sets a custom identifier for the ActionsBlock instance.

Name
Type
Required
Default
Description

id

string

true

The custom identifier for the ActionsBlock instance.

Return: The ActionsBlock instance.

button

Adds a ButtonElement to this ActionsBlock instance.

ButtonElement
Name
Type
Required
Default
Description

text

string

true

The text of the new button element.

Return: The new ButtonElement instance.

getMemento

Converts the ActionsBlock instance to a serializable format.

Name
Type
Required
Default
Description

No arguments

Return: (struct) A struct representing this ActionsBlock instance.

Last updated