aboutsummaryrefslogtreecommitdiff
path: root/lib/models/channel/message/message_t.mli
blob: d829dc5030a6c41d44ca9a2411b782f451d3d034 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(** Represents a message object. *)
type t = {
    id: Message_id.t;
    author: User_t.t;
    channel_id: Channel_id_t.t;
    member: Member_t.partial_member option;
    guild_id: Guild_id_t.t option;
    content: string;
    timestamp: string;
    editedimestamp: string option;
    tts: bool;
    mention_everyone: bool;
    mentions: User_id_t.t list;
    role_mentions: Role_id.t list;
    attachments: Attachment.t list;
    embeds: Embed.t list;
    reactions: Snowflake.t list;
    nonce: Snowflake.t option;
    pinned: bool;
    webhook_id: Snowflake.t option;
    kind: int;
} [@@deriving sexp, yojson]