aboutsummaryrefslogtreecommitdiff
path: root/lib/models/message_t.mli
blob: 2442d7658b9fb8aa1513245cf06a20ffe95f491e (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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
(* Auto-generated from "message.atd" *)
              [@@@ocaml.warning "-27-32-35-39"]

type user = User_t.t

type snowflake = Snowflake_t.t

type role = Role_t.t

type reaction = Reaction_t.t

type partial_member = Member_t.partial_member

type embed = Embed_t.t

type attachment = Attachment_t.t

type t = {
  id: snowflake;
  author: user;
  channel_id: snowflake;
  member: partial_member option;
  guild_id: snowflake option;
  content: string;
  timestamp: string;
  edited_timestamp: string option;
  tts: bool;
  mention_everyone: bool;
  mentions: user list;
  role_mentions: role list;
  attachments: attachment list;
  embeds: embed list;
  reactions: reaction list;
  nonce: snowflake option;
  pinned: bool;
  webhook_id: snowflake;
  kind: int
}

type member = Member_t.t