PlainTextOnlyTextObject

init

Creates a PlainTextOnlyTextObject instance.

NameTypeRequiredDefaultDescription

text

string

true

The text to display.

maxLength

numeric

false

3000

The maximum length for the text object. Text over the maximum length will be truncated at the maximum length with ... added at the end.

minLength

numeric

false

1

The minimum length for the text object.

Return: The PlainTextOnlyTextObject instance.

emoji

Sets the PlainTextOnlyTextObject to interpret emoji in the text field.

NameTypeRequiredDefaultDescription

No arguments

Return: The PlainTextOnlyTextObject instance.

getMemento

Converts the PlainTextOnlyTextObject instance to a serializable format.

NameTypeRequiredDefaultDescription

No arguments

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

{
    "type": "plain_text",
    "text": "Some text here :tada:",
    "emoji": true
}

Last updated