discord_gleam/types/message_send_response

Types

Data returned by discord when you send a message

pub type MessageSendResponse {
  MessageSendResponse(
    id: Snowflake,
    channel_id: Snowflake,
    content: String,
    timestamp: String,
    author: user.User,
  )
}

Constructors

  • MessageSendResponse(
      id: Snowflake,
      channel_id: Snowflake,
      content: String,
      timestamp: String,
      author: user.User,
    )

Functions

pub fn from_json_string(
  encoded: String,
) -> Result(MessageSendResponse, DiscordError)

Decode a string to a message send response

Search Document