SlackCodeField#
- pydantic model safir.slack.blockkit.SlackCodeField#
An attachment in a Slack message with a heading and text body.
Intended for use in the
fieldsportion of a Block Kit message. If the formatted output is longer than 2000 characters, it will be truncated to avoid the strict upper limit imposed by Slack.- Parameters:
- Fields:
- to_slack()#
Convert to a Slack Block Kit block.
- Returns:
A Slack Block Kit block suitable for including in the
fieldsortextsection of ablockselement.- Return type:
- Overrides: