SlackBaseBlock#

class safir.slack.blockkit.SlackBaseBlock(**data)#

Bases: BaseModel

Base class for any Slack Block Kit block.

Parameters:

data (Any) –

Methods Summary

to_slack()

Convert to a Slack Block Kit block.

Methods Documentation

abstract to_slack()#

Convert to a Slack Block Kit block.

Returns:

A Slack Block Kit block suitable for including in the fields or text section of a blocks element.

Return type:

dict