SlackBaseField#
- pydantic model safir.slack.blockkit.SlackBaseField#
Base class for Slack Block Kit blocks for the
fields
section.- Parameters:
data (
Any
)
- abstract to_slack()#
Convert to a Slack Block Kit block.
- Returns:
A Slack Block Kit block suitable for including in the
fields
ortext
section of ablocks
element.- Return type:
- max_formatted_length: ClassVar[int] = 2000#
Maximum length of formatted output, imposed by Slack.
Intended to be overridden by child classes that need to impose different maximum lengths.