sym.sdk.integrations.slack

Helpers for interacting with a Slack workspace.

Functions

channel(name[, allow_self])

A reference to a Slack channel.

group(users[, allow_self])

A reference to a Slack group.

user(identifier)

A reference to a Slack user.

Classes

SlackChannel

SlackLookupType

An enumeration.

class sym.sdk.integrations.slack.SlackChannel(lookup_type: sym.sdk.integrations.slack.SlackLookupType, lookup_keys: List[Union[str, sym.sdk.user.User]], allow_self: bool = True)

Bases: object

class sym.sdk.integrations.slack.SlackLookupType(value)

Bases: str, enum.Enum

An enumeration.

sym.sdk.integrations.slack.channel(name: str, allow_self: bool = False)sym.sdk.integrations.slack.SlackChannel

A reference to a Slack channel.

sym.sdk.integrations.slack.group(users: Sequence[Union[str, sym.sdk.user.User]], allow_self: bool = False)sym.sdk.integrations.slack.SlackChannel

A reference to a Slack group.

Parameters

users (Sequence[Union[str, User]]) – A list of either Sym User objects or emails.

sym.sdk.integrations.slack.user(identifier: Union[str, sym.sdk.user.User])sym.sdk.integrations.slack.SlackChannel

A reference to a Slack user.

Users can be specified with a Slack user ID, email, or Sym User instance.