slackline/api/admin/apps/permissions_set

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

Setters for the optional arguments of admin.apps.permissions.set. Each setter takes the call that apps.permissions_set returns and sets one argument:

apps.permissions_set(app_id: "A0000000001", permission_type: permission_type)
|> permissions_set.user_ids(user_ids)

Values

pub fn channel_ids(
  call: slackline.Call(apps.PermissionsSet, r),
  channel_ids: List(String),
) -> slackline.Call(apps.PermissionsSet, r)

List of encoded channel IDs for channel restrictions. Semantics depend on channel_restriction_mode: allowlist for specific_channels, exclusion list for all_channels_except Maximum: 200

pub fn channel_restriction_mode(
  call: slackline.Call(apps.PermissionsSet, r),
  channel_restriction_mode: apps.ChannelRestrictionMode,
) -> slackline.Call(apps.PermissionsSet, r)

The mode that defines where the app can be used in channels Acceptable values: all_channels specific_channels all_channels_except

pub fn user_ids(
  call: slackline.Call(apps.PermissionsSet, r),
  user_ids: List(String),
) -> slackline.Call(apps.PermissionsSet, r)

List of user IDs to allow for named_entities visibility Maximum: 200

pub fn usergroup_ids(
  call: slackline.Call(apps.PermissionsSet, r),
  usergroup_ids: List(String),
) -> slackline.Call(apps.PermissionsSet, r)

List of encoded usergroup IDs the permission applies to. With named_entities the listed groups may access the app; with named_entities_exclude they may not

✨ Search Document