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(message.Embed),
  )
}

Constructors

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

Values

pub fn embed_to_json(embed: message.Embed) -> json.Json

Convert an embed to a JSON object

pub fn to_string(msg: Reply) -> String

Convert a reply to a JSON string

Search Document