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
The identifier of the channel (e.g.,
#general
for a Slack channel).An alias for this resource's slug, derived from its
SRN
.A
SRN
object that represents the unique identifier for this resource.The channel type (e.g.,
slack
orsym
).- 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 type¶
The channel type (e.g.,
slack
orsym
).