Skip to content

Commit

Permalink
Doc'd @mention support for pretext, text, & fields[X].value
Browse files Browse the repository at this point in the history
  • Loading branch information
cwarnermm committed Nov 12, 2024
1 parent 9e5544a commit fbaefc5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ When sending an attachment, you can use any of the following to format how you w

![image](attachments-color.png)

`pretext`: An optional line of text that will be shown above the attachment.
`pretext`: An optional line of text that will be shown above the attachment. Supports @mentions.

![image](attachments-pretext.png)

`text`: The text to be included in the attachment. It can be formatted using {{< newtabref href="https://docs.mattermost.com/help/messaging/formatting-text.html" title="Markdown" >}}. For long texts, the message is collapsed and a “Show More” link is added to expand the message.
`text`: The text to be included in the attachment. It can be formatted using {{< newtabref href="https://docs.mattermost.com/help/messaging/formatting-text.html" title="Markdown" >}}. For long texts, the message is collapsed and a “Show More” link is added to expand the message. Supports @mentions.

![image](attachments-text.png)

Expand Down Expand Up @@ -53,7 +53,7 @@ Fields can be included as an optional array within `attachments`, and are used t

`title`: A title shown in the table above the `value`. As of v5.14 a title will render emojis properly.

`value`: The text value of the field. It can be formatted using {{< newtabref href="https://docs.mattermost.com/help/messaging/formatting-text.html" title="Markdown" >}}.
`value`: The text value of the field. It can be formatted using {{< newtabref href="https://docs.mattermost.com/help/messaging/formatting-text.html" title="Markdown" >}}. Supports @mentions.

`short`: Optionally set to true or false (boolean) to indicate whether the `value` is short enough to be displayed beside other values.

Expand Down

0 comments on commit fbaefc5

Please sign in to comment.