Skip to main content

Modals

Class

Modal(title: 'TextLike', blocks: 'Block | list[Block]', close: 'TextLike | None' = None, submit: 'TextLike | None' = None, private_metadata: 'str | None' = None, callback_id: 'str | None' = None, clear_on_close: 'bool | None' = False, notify_on_close: 'bool | None' = False, external_id: 'str | None' = None, submit_disabled: 'bool | None' = False) -> 'None'

Kept for backwards compatibility - see ModalView

json​

json() -> 'str'

Return the validated Slack-shaped payload as indented JSON.

to_dict​

to_dict() -> 'dict[str, Any]'

Return a fresh Slack-shaped dictionary, validating the resolved payload.