aboutsummaryrefslogtreecommitdiff
path: root/lib/models/channel/message/message_t.mli
blob: 14086fe7c5ee76c87ac5604b6401998863d1901d (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: Snowflake.t;
    author: User_t.t;
    channel_id: Snowflake.t;
    member: Member_t.partial_member option;
    guild_id: Snowflake.t option;
    content: string;
    timestamp: string;
    editedimestamp: string option;
    tts: bool;
    mention_everyone: bool;
    (* mentions: Snowflake.t list; *)
    (* role_mentions: Snowflake.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]