Broadcast element
This is a rich text element, compatible only with the rich_text block. It must be used within the rich_text_list, rich_text_quote, or rich_text_section block element within the rich_text block's elements array.
Fields
| Field | Type | Description | Required? |
|---|---|---|---|
type | String | The type of object; in this case, "broadcast". | Required |
range | String | The range of the broadcast; value can be here, channel, or everyone. Using here notifies only the active members of a channel; channel notifies all members of a channel; everyone notifies every person in the #general channel. | Required |
style | Object | An object of optional boolean properties that dictate style: bold, italic, strike, highlight, client_highlight, underline, and unlink. | Optional |
Example
- JSON
- Python Slack SDK
- Node Slack SDK
- Java Slack SDK
{
"blocks": [
{
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "broadcast",
"range": "everyone"
}
]
}
]
}
]
}
block-kit/src/blocks/rich_text.py
loading...
block-kit/src/blocks/rich_text.js
loading...
block-kit/src/main/java/blocks/RichText.java
loading...