discord_gleam/types/reply

Types

Our reply type, which is used to send replies to messages

pub type Reply {
  Reply(content: String, message_id: String, embeds: List(Embed))
}

Constructors

  • Reply(content: String, message_id: String, embeds: List(Embed))

Functions

pub fn embed_to_json(embed: Embed) -> Json

Convert an embed to a JSON object

pub fn to_string(msg: Reply) -> String

Convert a reply to a JSON string

Search Document