discord_gleam/types/message_send_response

Types

Data returned by discord when you send a message

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

Constructors

Values

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

Decode a string to a message send response

Search Document