slackline/bot

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

Bot users, as returned by bots.info and the bot_added and bot_changed events.

Types

A bot.

pub type Bot {
  Bot(
    id: String,
    deleted: option.Option(Bool),
    name: option.Option(String),
    updated: option.Option(Int),
    app_id: option.Option(String),
    user_id: option.Option(String),
    icons: option.Option(BotIcons),
  )
}

Constructors

A bot’s icon in several sizes.

pub type BotIcons {
  BotIcons(
    image_36: option.Option(String),
    image_48: option.Option(String),
    image_72: option.Option(String),
  )
}

Constructors

Values

pub fn bot_decoder() -> decode.Decoder(Bot)

Decodes Bot from json.

pub fn bot_icons_decoder() -> decode.Decoder(BotIcons)

Decodes BotIcons from json.

pub fn bot_icons_to_json(it: BotIcons) -> json.Json

Encodes BotIcons as json.

pub fn bot_to_json(it: Bot) -> json.Json

Encodes Bot as json.

✨ Search Document