sym.sdk.event.Channel

class sym.sdk.event.Channel(srn: Union[sym.sdk.resource.SRN, str])

Bases: sym.sdk.resource.SymResource

The Channel object contains information about the channel from which an event was sent.

Methods

dict()

Represent this resource as a dictionary.

Attributes

identifier

The identifier of the channel (e.g.

name

An alias for this resource's slug, derived from its SRN.

srn

A SRN object that represents the unique identifier for this resource.

type

The channel type (e.g.

dict()

Represent this resource as a dictionary.

property identifier

The identifier of the channel (e.g. #general for a Slack channel).

Note that, if the event originated from a Slack shortcut (as opposed to a slash command), identifier will be None. This is because shortcuts are global and not linked to any specific channel.

property name

An alias for this resource’s slug, derived from its SRN.

property srn

A SRN object that represents the unique identifier for this resource.

property type

The channel type (e.g. slack or sym).