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

Class CallBlock

slack_sdk/models/blocks/blocks.py:515–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513
514
515class CallBlock(Block):
516 type = "call"
517
518 @property
519 def attributes(self) -> Set[str]: # type: ignore[override]
520 return super().attributes.union({"call_id", "api_decoration_available", "call"})
521
522 def __init__(
523 self,
524 *,
525 call_id: str,
526 api_decoration_available: Optional[bool] = None,
527 call: Optional[Dict[str, Dict[str, Any]]] = None,
528 block_id: Optional[str] = None,
529 **others: dict,
530 ):
531 """Displays a call information
532 https://docs.slack.dev/reference/block-kit/blocks#call
533 """
534 super().__init__(type=self.type, block_id=block_id)
535 show_unknown_key_warning(self, others)
536
537 self.call_id = call_id
538 self.api_decoration_available = api_decoration_available
539 self.call = call
540
541
542class HeaderBlock(Block):

Callers 4

test_syncMethod · 0.90
parseMethod · 0.85

Calls

no outgoing calls

Tested by 3

test_syncMethod · 0.72