Slack options for every write inside an effect; None leaves a
field as the enclosing options set it.
notify_users,notify_groupsandnotify_broadcast: which mention tokens may notify. Default: none.unfurl: link and media previews onpost. Default false, which sendsunfurl_linksandunfurl_mediaboth false.chat.updatehas no unfurl parameter, and Slack disables unfurling in a stream.native_stream: default true where the workspace supports it.recipient_team_id: for a Connect channel, where the recipient is on another team.session_status_at_end: the agent session status at a normal end of a native stream. Default"active".
Attributes#
| Attribute | Type | Description |
|---|---|---|
notify_users | Sequence[str] | None = None | |
notify_groups | Sequence[str] | None = None | |
notify_broadcast | bool | None = None | |
unfurl | bool | None = None | |
native_stream | bool | None = None | |
recipient_team_id | str | None = None | |
session_status_at_end | SessionStatus | None = None | |
notify | Notify | Who a post may notify. |
Functions#
__init__#
__init__(*, notify_users=None, notify_groups=None, notify_broadcast=None, unfurl=None, native_stream=None, recipient_team_id=None, session_status_at_end=None) -> None| Parameter | Type | Description |
|---|---|---|
notify_users | Sequence[str] | None = None | |
notify_groups | Sequence[str] | None = None | |
notify_broadcast | bool | None = None | |
unfurl | bool | None = None | |
native_stream | bool | None = None | |
recipient_team_id | str | None = None | |
session_status_at_end | SessionStatus | None = None |
merge#
merge(inner) -> SlackPostOptionsThese options with inner's set fields winning.
| Parameter | Type | Description |
|---|---|---|
inner | SlackPostOptions |
Returns SlackPostOptions
def merge(self, inner: SlackPostOptions) -> SlackPostOptions:
"""These options with ``inner``'s set fields winning."""
changes: dict[str, object] = {
field.name: value
for field in fields(inner)
if (value := getattr(inner, field.name)) is not None
}
return replace(self, **changes)