view_payload¶
Warning
This module is not currently supported since it’s a message payload.
ViewPayload¶
-
class
slack_blockkit.view_payload.
ViewPayload
(btype: str, title: slack_blockkit.composition_object.TextObject, blocks: List[slack_blockkit.block.Block], close: slack_blockkit.composition_object.TextObject = None, submit: slack_blockkit.composition_object.TextObject = None, private_metadata: str = None, callback_id: str = None, clear_on_close: bool = False, notify_on_close: bool = False, external_id: str = None)¶ Defines a view payload. For more information, see: https://api.slack.com/reference/surfaces/views
-
get_payload
() → dict¶ Syntactic sugar to return the
render()
payload as adict
.- Returns
The result of the
render()
method.
-