slackline/api/agents/sessions_set_status

This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.

Setters for the optional arguments of agents.sessions.setStatus. Each setter takes the call that agents.sessions_set_status returns and sets one argument:

agents.sessions_set_status(status: status)
|> sessions_set_status.channel_id("channel_id")

Values

pub fn channel_id(
  call: slackline.Call(agents.SessionsSetStatus, r),
  channel_id: String,
) -> slackline.Call(agents.SessionsSetStatus, r)

ID of the channel containing the agent session. Required for public channels.

pub fn icon_emoji(
  call: slackline.Call(agents.SessionsSetStatus, r),
  icon_emoji: String,
) -> slackline.Call(agents.SessionsSetStatus, r)

Emoji to use as the agent’s icon. Takes priority over icon_url. Remains in effect until you clear it (pass null) or set a new value. Requires the chat:write.customize scope.

pub fn icon_url(
  call: slackline.Call(agents.SessionsSetStatus, r),
  icon_url: String,
) -> slackline.Call(agents.SessionsSetStatus, r)

URL to an image to use as the agent’s icon. Remains in effect until you clear it (pass null) or set a new value. Requires the chat:write.customize scope.

pub fn initiator_user_id(
  call: slackline.Call(agents.SessionsSetStatus, r),
  initiator_user_id: String,
) -> slackline.Call(agents.SessionsSetStatus, r)

The user who initiated the session. Only used when creating a new session; ignored if the session already exists. Must be a member of the channel.

pub fn thread_ts(
  call: slackline.Call(agents.SessionsSetStatus, r),
  thread_ts: String,
) -> slackline.Call(agents.SessionsSetStatus, r)

Timestamp of the thread root message the session is scoped to. Required for thread-based sessions in regular channels and DMs. Must be omitted for session channels.

pub fn title(
  call: slackline.Call(agents.SessionsSetStatus, r),
  title: String,
) -> slackline.Call(agents.SessionsSetStatus, r)

Title for the agent session (max 200 characters). Only used when creating a new session; ignored if the session already exists. To rename an existing session, use agents.sessions.rename.

pub fn username(
  call: slackline.Call(agents.SessionsSetStatus, r),
  username: String,
) -> slackline.Call(agents.SessionsSetStatus, r)

Display name override for the agent (max 200 characters). Remains in effect until you clear it (pass null) or set a new value. Requires the chat:write.customize scope.

✨ Search Document