slackline/api/admin/conversations/create

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

Setters for the optional arguments of admin.conversations.create. Each setter takes the call that conversations.create returns and sets one argument:

conversations.create(name: "mychannel", is_private: True)
|> create.description("It's a good channel, Bront.")

Values

pub fn description(
  call: slackline.Call(conversations.Create, r),
  description: String,
) -> slackline.Call(conversations.Create, r)

Description of the public or private channel to create.

pub fn org_wide(
  call: slackline.Call(conversations.Create, r),
  org_wide: Bool,
) -> slackline.Call(conversations.Create, r)

When true, the channel will be available org-wide. Note: if the channel is not org_wide=true, you must specify a team_id for this channel Defaults to false.

pub fn team_id(
  call: slackline.Call(conversations.Create, r),
  team_id: String,
) -> slackline.Call(conversations.Create, r)

The workspace to create the channel in. Note: this argument is required unless you set org_wide=true.

✨ Search Document