Objects are common JSON objects that are used inside blocks and block elements.
Text object
This is an object containing some text.
Field | Type | Required? | Description |
---|---|---|---|
| String | Yes | The type of text object that you want to add. The available values are |
| String | Yes | The actual text. |
| Boolean | No | Works with the |
Example
{
type: 'plain_text',
text: 'lorem ipsum 🚀',
emoji: true,
}
Options object
This object is usually used to define options in interactive elements such as select menus and radio buttons.
Field | Type | Required? | Description |
---|---|---|---|
| Object{} | Yes | The text object that is to be displayed on the menu. |
| String | Yes | The value that the option represents. |
Example
{
value: 'option_1',
text: {
type: 'plain_text',
text: 'lorem ipsum 🚀',
emoji: true,
}
}