class sym.sdk.request_destination.SlackChannelID(*, allow_self: bool = False, timeout: Optional[int] = None, channel_id: str)

Bases: sym.sdk.request_destination.SlackRequestDestination

A Request to be sent to a Slack Channel, identified by a Slack Channel ID, e.g. ‘C12345’.

field channel_id: str [Required]

A string that identifies a Slack Channel by its unique ID. e.g. ‘C12345’.

Validated by
classmethod parse_obj(obj)

Without this method override, Pydantic will not call our custom validator when parsing a RequestDestination directly (e.g. RequestDestination.parse_obj(…)). It will only be called when parsing fields that contain a RequestDestination object (e.g. SlackUserGroup.parse_obj(…), where the users field contains SlackUsers which are subclasses of RequestDestination).

validator validate_channel_id_format  »  channel_id

Validates that the given channel_id follows Slack’s convention of starting with a C, D or G. (e.g. ‘D12345’).