slackline/api/chat/schedule_message

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

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

chat.schedule_message(channel: "channel", post_at: 299876400, text: "Hello world")
|> schedule_message.as_user(True)

Values

pub fn as_user(
  call: slackline.Call(chat.ScheduleMessage, r),
  as_user: Bool,
) -> slackline.Call(chat.ScheduleMessage, r)

Set to true to post the message as the authed user, instead of as a bot. Defaults to false. Cannot be used by new Slack apps. See chat.postMessage.

pub fn attachments(
  call: slackline.Call(chat.ScheduleMessage, r),
  attachments: List(attachment.Attachment),
) -> slackline.Call(chat.ScheduleMessage, r)

A list of structured attachments.

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

A list of structured blocks.

pub fn link_names(
  call: slackline.Call(chat.ScheduleMessage, r),
  link_names: Bool,
) -> slackline.Call(chat.ScheduleMessage, r)

Find and link user groups. No longer supports linking individual users; use syntax shown in Mentioning Users instead.

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

Accepts message text formatted in markdown. This argument should not be used in conjunction with blocks or text. Limit this field to 12,000 characters.

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

A JSON object with event_type and event_payload fields. Messages scheduled with metadata currently do not post (a documented bug).

pub fn parse(
  call: slackline.Call(chat.ScheduleMessage, r),
  parse: chat.ParseMode,
) -> slackline.Call(chat.ScheduleMessage, r)

Change how messages are treated. See chat.postMessage. Acceptable values: none full

pub fn reply_broadcast(
  call: slackline.Call(chat.ScheduleMessage, r),
  reply_broadcast: Bool,
) -> slackline.Call(chat.ScheduleMessage, r)

Used in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.

pub fn thread_ts(
  call: slackline.Call(chat.ScheduleMessage, r),
  thread_ts: String,
) -> slackline.Call(chat.ScheduleMessage, r)

Provide another message’s ts value to make this message a reply. Avoid using a reply’s ts value; use its parent instead.

pub fn unfurl_links(
  call: slackline.Call(chat.ScheduleMessage, r),
  unfurl_links: Bool,
) -> slackline.Call(chat.ScheduleMessage, r)

Pass true to enable unfurling of primarily text-based content.

pub fn unfurl_media(
  call: slackline.Call(chat.ScheduleMessage, r),
  unfurl_media: Bool,
) -> slackline.Call(chat.ScheduleMessage, r)

Pass false to disable unfurling of media content.

✨ Search Document