aboutsummaryrefslogtreecommitdiff
path: root/lib/models/message_t.ml
blob: b8aa2048d0da6bed85c5047e4a9f4c9f5874c220 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
    role_mentions: Snowflake.t list [@default []];
    attachments: Attachment.t list;
    embeds: Embed.t list;
    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 yojson { strict = false}]