| 204 | |
| 205 | |
| 206 | class DividerBlock(Block): |
| 207 | type = "divider" |
| 208 | |
| 209 | def __init__( |
| 210 | self, |
| 211 | *, |
| 212 | block_id: Optional[str] = None, |
| 213 | **others: dict, |
| 214 | ): |
| 215 | """A content divider, like an <hr>, to split up different blocks inside of a message. |
| 216 | https://docs.slack.dev/reference/block-kit/blocks/divider-block |
| 217 | |
| 218 | Args: |
| 219 | block_id: A string acting as a unique identifier for a block. If not specified, one will be generated. |
| 220 | You can use this block_id when you receive an interaction payload to identify the source of the action. |
| 221 | Maximum length for this field is 255 characters. |
| 222 | block_id should be unique for each message and each iteration of a message. |
| 223 | If a message is updated, use a new block_id. |
| 224 | """ |
| 225 | super().__init__(type=self.type, block_id=block_id) |
| 226 | show_unknown_key_warning(self, others) |
| 227 | |
| 228 | |
| 229 | class ImageBlock(Block): |
no outgoing calls