crux_structs v0.1.4 Crux.Structs.Message View Source
Represents a Discord Message Object.
Link to this section Summary
Functions
Creates a Crux.Structs.Message struct from raw data
Link to this section Types
Link to this type
t()
View Source
t() :: %Crux.Structs.Message{
attachments: [Crux.Structs.Attachment.t()],
author: Crux.Structs.User.t(),
channel_id: integer(),
content: String.t(),
edited_timestamp: String.t(),
embeds: [Crux.Structs.Embed.t()],
guild_id: integer() | nil,
id: integer(),
mention_everyone: boolean(),
mention_roles: MapSet.t(integer()),
mentions: MapSet.t(integer()),
nonce: String.t() | nil,
pinned: boolean(),
reactions: %{optional(String.t()) => Crux.Structs.Reaction.t()},
timestamp: String.t(),
tts: boolean(),
type: integer(),
webhook_id: integer() | nil
}
Link to this section Functions
Creates a Crux.Structs.Message struct from raw data.
Automatically invoked by
Crux.Structs.create/2.