slackline/api/conversations/open
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Setters for the optional arguments of
conversations.open.
Each setter takes the call that conversations.open returns and sets one
argument:
conversations.open()
|> open.channel("channel")
Values
pub fn channel(
call: slackline.Call(conversations.Open, r),
channel: String,
) -> slackline.Call(conversations.Open, r)
Resume a conversation by supplying an im or mpim’s ID. Or provide the
users field instead.
pub fn prevent_creation(
call: slackline.Call(conversations.Open, r),
prevent_creation: Bool,
) -> slackline.Call(conversations.Open, r)
Do not create a direct message or multi-person direct message. This is used to see if there is an existing dm or mpdm.
pub fn return_im(
call: slackline.Call(conversations.Open, r),
return_im: Bool,
) -> slackline.Call(conversations.Open, r)
Boolean, indicates you want the full IM channel definition in the response.
pub fn users(
call: slackline.Call(conversations.Open, r),
users: List(String),
) -> slackline.Call(conversations.Open, r)
1 to 8 user IDs. One ID opens a DM. More IDs open a multi-person DM. Do not include the calling user.