slackline/api/files/upload
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Setters for the optional arguments of
files.upload.
Each setter takes the call that files.upload returns and sets one
argument:
files.upload()
|> upload.channels(channels)
Values
pub fn channels(
call: slackline.Call(files.Upload, r),
channels: List(String),
) -> slackline.Call(files.Upload, r)
Channel names or IDs where the file will be shared.
pub fn content(
call: slackline.Call(files.Upload, r),
content: String,
) -> slackline.Call(files.Upload, r)
File contents via a POST variable. If omitting this parameter, you must
provide a file.
pub fn file(
call: slackline.Call(files.Upload, r),
file: slackline.FileUpload,
) -> slackline.Call(files.Upload, r)
The file contents. Send this or content.
pub fn filename(
call: slackline.Call(files.Upload, r),
filename: String,
) -> slackline.Call(files.Upload, r)
Filename of file.
pub fn filetype(
call: slackline.Call(files.Upload, r),
filetype: String,
) -> slackline.Call(files.Upload, r)
A file type identifier.
pub fn initial_comment(
call: slackline.Call(files.Upload, r),
initial_comment: String,
) -> slackline.Call(files.Upload, r)
The message text introducing the file in specified channels.
pub fn thread_ts(
call: slackline.Call(files.Upload, r),
thread_ts: String,
) -> slackline.Call(files.Upload, 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.
pub fn title(
call: slackline.Call(files.Upload, r),
title: String,
) -> slackline.Call(files.Upload, r)
Title of file.