aboutsummaryrefslogtreecommitdiff
path: root/lib/models/message.ml
blob: c578d9f8e4d293e3a29ea52795efd4ede4cb83ad (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;
    channel: Channel.t;
    member: Member.t option;
    guild: Guild.t option;
    content: string;
    timestamp: string;
    edited_timestamp: string option;
    tts: bool;
    mention_everyone: bool;
    mentions: User.t list;
    role_mentions: Role.t list;
    attachments: Attachment.t list;
    embeds: Embed.t list;
    reactions: Reaction.t list;
    nonce: Snowflake.t option;
    pinned: bool;
    webhook_id: Snowflake.t;
    kind: int;
} [@@deriving yojson]