slackline/api/files/complete_upload_external
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Setters for the optional arguments of
files.completeUploadExternal.
Each setter takes the call that files.complete_upload_external returns
and sets one argument:
files.complete_upload_external(files: files)
|> complete_upload_external.channel_id("C0NF841BK")
Values
pub fn blocks(
call: slackline.Call(files.CompleteUploadExternal, r),
blocks: List(block.Block),
) -> slackline.Call(files.CompleteUploadExternal, r)
Structured blocks to use as the message introducing the file. Ignored if
initial_comment is provided.
pub fn channel_id(
call: slackline.Call(files.CompleteUploadExternal, r),
channel_id: String,
) -> slackline.Call(files.CompleteUploadExternal, r)
Channel ID where the file will be shared. If not specified the file will be private.
pub fn channels(
call: slackline.Call(files.CompleteUploadExternal, r),
channels: List(String),
) -> slackline.Call(files.CompleteUploadExternal, r)
Comma-separated list of channel IDs or user IDs where the file will be shared.
pub fn icon_emoji(
call: slackline.Call(files.CompleteUploadExternal, r),
icon_emoji: String,
) -> slackline.Call(files.CompleteUploadExternal, r)
Emoji to use as the icon for the file share message. Overrides icon_url.
Requires the
chat:write.customize
scope.
pub fn icon_url(
call: slackline.Call(files.CompleteUploadExternal, r),
icon_url: String,
) -> slackline.Call(files.CompleteUploadExternal, r)
URL to an image to use as the icon for the file share message. Requires the
chat:write.customize
scope.
pub fn initial_comment(
call: slackline.Call(files.CompleteUploadExternal, r),
initial_comment: String,
) -> slackline.Call(files.CompleteUploadExternal, r)
The message text introducing the file in specified channels.
pub fn thread_ts(
call: slackline.Call(files.CompleteUploadExternal, r),
thread_ts: String,
) -> slackline.Call(files.CompleteUploadExternal, r)
Provide another message’s ts value to upload this file as a reply. Never
use a reply’s ts value; use its parent instead. Also make sure to provide
only one channel when using ‘thread_ts’
pub fn username(
call: slackline.Call(files.CompleteUploadExternal, r),
username: String,
) -> slackline.Call(files.CompleteUploadExternal, r)
Set your bot’s user name for the file share message. Requires the
chat:write.customize
scope.