slackline/api/emoji
This module is generated by gleam run -m slackline_codegen/generate. Do not edit it by hand.
Custom emoji (emoji.*).
Types
Identifies emoji.list in the slackline.Call that list returns.
pub type ListMethod
A successful response from emoji.list.
pub type ListResponse {
ListResponse(
emoji: option.Option(dict.Dict(String, String)),
categories: option.Option(value.Value),
)
}
Constructors
-
ListResponse( emoji: option.Option(dict.Dict(String, String)), categories: option.Option(value.Value), )Arguments
- emoji
-
Custom emoji names mapped to image URLs. Aliases have values of the form
alias:<other emoji name>. - categories
-
Unicode emoji categories, when
include_categoriesistrue. The docs do not describe its shape.
Values
pub fn list() -> slackline.Call(ListMethod, ListResponse)
emoji.list: Lists
custom emoji for a team.
emoji.ListMethod identifies this method in slackline.Call.
Set optional arguments with the functions in slackline/api/emoji/list.
Bot token scopes: emoji:read.
User token scopes: emoji:read.
Rate limit tier: t2.
Documented errors: unable_to_fetch_custom_emojis.
pub fn list_response_decoder() -> decode.Decoder(ListResponse)
Decodes the response from emoji.list.