aboutsummaryrefslogtreecommitdiff
path: root/lib/models/channel/message/message_t.ml
blob: 47b5803b20a75062a66ae688ea600e8c9109a7ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
open Core

type t = {
    id: Snowflake.t;
    author: User_t.t;
    channel_id: Snowflake.t;
    member: Member_t.partial_member option [@default None];
    guild_id: Snowflake.t option [@default None];
    content: string;
    timestamp: string;
    editedimestamp: string option [@default None];
    tts: bool;
    mention_everyone: bool;
    (* mentions: Snowflake.t list [@default []]; *)
    (* role_mentions: Snowflake.t list [@default []]; *)
    attachments: Attachment.t list [@default []];
    embeds: Embed.t list [@default []];
    reactions: Snowflake.t list [@default []];
    nonce: Snowflake.t option [@default None];
    pinned: bool;
    webhook_id: Snowflake.t option [@default None];
    kind: int [@key "type"];
} [@@deriving sexp, yojson { strict = false}]