discord_gleam/types/message

Types

pub type Embed {
  Embed(title: String, description: String, color: Int)
}

Constructors

  • Embed(title: String, description: String, color: Int)
pub type Message {
  Message(content: String, embeds: List(Embed))
}

Constructors

  • Message(content: String, embeds: List(Embed))

Functions

pub fn embed_to_json(embed: Embed) -> Json
pub fn to_string(msg: Message) -> String
Search Document