slackline/api/chat/post_ephemeral
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Setters for the optional arguments of
chat.postEphemeral.
Each setter takes the call that chat.post_ephemeral returns and sets one
argument:
chat.post_ephemeral(channel: "channel", user: "U0BPQUNTA", text: "Hello world")
|> post_ephemeral.attachments(attachments)
Values
pub fn as_user(
call: slackline.Call(chat.PostEphemeral, r),
as_user: Bool,
) -> slackline.Call(chat.PostEphemeral, r)
(Legacy) Pass true to post the message as the authed user. Defaults to true if the chat:write:bot scope is not included. Otherwise, defaults to false.
pub fn attachments(
call: slackline.Call(chat.PostEphemeral, r),
attachments: List(attachment.Attachment),
) -> slackline.Call(chat.PostEphemeral, r)
A list of structured attachments.
pub fn blocks(
call: slackline.Call(chat.PostEphemeral, r),
blocks: List(block.Block),
) -> slackline.Call(chat.PostEphemeral, r)
A list of structured blocks.
pub fn icon_emoji(
call: slackline.Call(chat.PostEphemeral, r),
icon_emoji: String,
) -> slackline.Call(chat.PostEphemeral, r)
Emoji to use as the icon for this message. Overrides icon_url.
pub fn icon_url(
call: slackline.Call(chat.PostEphemeral, r),
icon_url: String,
) -> slackline.Call(chat.PostEphemeral, r)
URL to an image to use as the icon for this message.
pub fn link_names(
call: slackline.Call(chat.PostEphemeral, r),
link_names: Bool,
) -> slackline.Call(chat.PostEphemeral, r)
Find and link channel names and usernames.
pub fn markdown_text(
call: slackline.Call(chat.PostEphemeral, r),
markdown_text: String,
) -> slackline.Call(chat.PostEphemeral, 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.PostEphemeral, r),
metadata: message.MessageMetadata,
) -> slackline.Call(chat.PostEphemeral, r)
Work Object entity metadata. Set only entities: ephemeral messages
are not stored, so event metadata does not apply.
pub fn parse(
call: slackline.Call(chat.PostEphemeral, r),
parse: chat.ParseMode,
) -> slackline.Call(chat.PostEphemeral, r)
Change how messages are treated. Defaults to none. See
below.
Acceptable values: none full mrkdwn false
pub fn thread_ts(
call: slackline.Call(chat.PostEphemeral, r),
thread_ts: String,
) -> slackline.Call(chat.PostEphemeral, r)
Provide another message’s ts value to post this message in a thread. Avoid
using a reply’s ts value; use its parent’s value instead. Ephemeral
messages in threads are only shown if there is already an active thread.
pub fn username(
call: slackline.Call(chat.PostEphemeral, r),
username: String,
) -> slackline.Call(chat.PostEphemeral, r)
Set your bot’s user name.