Skip to main content

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

FieldTypeDescriptionRequired?
typeStringThe type of object; in this case, "message_mention".Required
channel_idStringThe ID of the channel containing the message.Required
message_tsStringThe timestamp of the message to link to.Required
author_idStringID of the author of the message.Optional
thread_tsStringTimestamp of when the message mention occurred.Optional
styleObjectAn object of optional boolean properties that dictate style: bold, italic, strike, highlight, client_highlight, underline, and unlink.Optional
textStringText representing the message.Optional
urlStringURL of the message.Optional

Example

{
"blocks": [
{
"type": "rich_text",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "message_mention",
"channel_id": "C123ABC456",
"message_ts": "1720710212.123456"
}
]
}
]
}
]
}

View in Block Kit Builder