MCPcopy Create free account
hub / github.com/slackapi/python-slack-sdk / DividerBlock

Class DividerBlock

slack_sdk/models/blocks/blocks.py:206–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204
205
206class 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
229class ImageBlock(Block):

Callers 15

test_with_blocksMethod · 0.90
test_with_blocksMethod · 0.90
test_user_auth_blocksMethod · 0.90
run_methodMethod · 0.90
test_eqMethod · 0.90
test_documentMethod · 0.90
test_jsonMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_with_blocksMethod · 0.72
test_with_blocksMethod · 0.72
test_user_auth_blocksMethod · 0.72
run_methodMethod · 0.72
test_eqMethod · 0.72
test_documentMethod · 0.72
test_jsonMethod · 0.72