slackline/api/chat/stop_stream

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

Setters for the optional arguments of chat.stopStream. Each setter takes the call that chat.stop_stream returns and sets one argument:

chat.stop_stream(channel: "channel", ts: "ts")
|> stop_stream.chunks(chunks)

Values

pub fn blocks(
  call: slackline.Call(chat.StopStream, r),
  blocks: List(block.Block),
) -> slackline.Call(chat.StopStream, r)

Blocks rendered at the bottom of the finalized message. Up to 50.

pub fn chunks(
  call: slackline.Call(chat.StopStream, r),
  chunks: List(chat.StreamChunk),
) -> slackline.Call(chat.StopStream, r)

Streaming chunks: markdown text, task updates, plan updates or blocks. Cannot be mixed with markdown_text within one stream.

pub fn markdown_text(
  call: slackline.Call(chat.StopStream, r),
  markdown_text: String,
) -> slackline.Call(chat.StopStream, r)

Accepts message text formatted in markdown. Limit this field to 12,000 characters.

pub fn metadata(
  call: slackline.Call(chat.StopStream, r),
  metadata: message.MessageMetadata,
) -> slackline.Call(chat.StopStream, r)

A JSON object with event_type and event_payload fields. Metadata you post to Slack is accessible to any app or user who is a member of that workspace.

pub fn session_status(
  call: slackline.Call(chat.StopStream, r),
  session_status: chat.SessionStatus,
) -> slackline.Call(chat.StopStream, r)

The session status to set after stopping the stream. Acceptable values: active processing suspended closed Defaults to active.

✨ Search Document