slackline/api/bots

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

Slack Web API methods for bot users.

Types

Identifies bots.info in the slackline.Call that info returns.

pub type Info

A successful response from bots.info.

pub type InfoResponse {
  InfoResponse(bot: option.Option(bot.Bot))
}

Constructors

Values

pub fn info(
  bot bot: String,
) -> slackline.Call(Info, InfoResponse)

bots.info: Gets information about a bot user.

bots.Info identifies this method in slackline.Call.

Set optional arguments with the functions in slackline/api/bots/info.

Bot token scopes: users:read. User token scopes: users:read.

Rate limit tier: t3.

Documented errors: bot_not_found, bots_not_found, team_not_found.

pub fn info_response_decoder() -> decode.Decoder(InfoResponse)

Decodes the response from bots.info.

✨ Search Document