Message mention 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, "message_mention". | Required |
channel_id | String | The ID of the channel containing the message. | Required |
message_ts | String | The timestamp of the message to link to. | Required |
author_id | String | ID of the author of the message. | Optional |
thread_ts | String | Timestamp of when the message mention occurred. | Optional |
style | Object | An object of optional boolean properties that dictate style: bold, italic, strike, highlight, client_highlight, underline, and unlink. | Optional |
text | String | Text representing the message. | Optional |
url | String | URL of the message. | Optional |
Example
- JSON
{
"blocks": [
{
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "message_mention",
"channel_id": "C123ABC456",
"message_ts": "1720710212.123456"
}
]
}
]
}
]
}