glitch/types/emote

Types

pub type Emote {
  Emote(
    id: String,
    emote_set_id: String,
    owner_id: String,
    format: Format,
  )
}

Constructors

  • Emote(
      id: String,
      emote_set_id: String,
      owner_id: String,
      format: Format,
    )
pub type Format {
  Animated
  Static
}

Constructors

  • Animated
  • Static

Functions

pub fn decoder() -> fn(Dynamic) ->
  Result(Emote, List(DecodeError))
pub fn format_decoder() -> fn(Dynamic) ->
  Result(Format, List(DecodeError))
pub fn format_from_string(string: String) -> Result(Format, Nil)
pub fn format_to_string(format: Format) -> String
Search Document