Slack Types#

class SlackElementType(element_type: Optional[str] = None)[source]#

Bases: object

A Slack element.

add_value(key: str, value: str)[source]#

Add a value to the element.

render() dict[source]#

Render the element to JSON.

class SlackImageType(image_url: str = '', alt_text: str = '')[source]#

Bases: SlackElementType

A Slack image type.

class SlackMarkdownType(text: str = '')[source]#

Bases: SlackElementType

A Slack markdown text type.

class SlackPlainTextType(text: str = '', emoji: bool = True)[source]#

Bases: SlackElementType

A Slack plain text type.