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
-
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), )Arguments
- id
-
The bot ID (
B...). - deleted
-
Whether the bot has been removed.
- updated
-
Unix timestamp of the last update.
- app_id
-
The app the bot belongs to.
- user_id
-
The bot user’s user ID.
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
-
BotIcons( image_36: option.Option(String), image_48: option.Option(String), image_72: option.Option(String), )
Values
pub fn bot_icons_decoder() -> decode.Decoder(BotIcons)
Decodes BotIcons from json.