aboutsummaryrefslogtreecommitdiff
path: root/lib/models/gen/message.atd
diff options
context:
space:
mode:
authorAdelyn Breedlove <[email protected]>2018-12-15 18:02:29 +0000
committerAdelyn Breedlove <[email protected]>2018-12-15 18:02:29 +0000
commit910ce60bba69b961c82e29ff1bb63bf4d3fe5519 (patch)
tree690861418bed15de47e7cf5672d96fdacc9abe5e /lib/models/gen/message.atd
parentMerge branch 'patch-1' into 'master' (diff)
parentMerging (diff)
downloaddisml-910ce60bba69b961c82e29ff1bb63bf4d3fe5519.tar.xz
disml-910ce60bba69b961c82e29ff1bb63bf4d3fe5519.zip
Merge branch 'dev' into 'master'
Merge first semi-usable state of dev-branch in a while See merge request Mishio595/disml!10
Diffstat (limited to 'lib/models/gen/message.atd')
-rw-r--r--lib/models/gen/message.atd29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/models/gen/message.atd b/lib/models/gen/message.atd
new file mode 100644
index 0000000..8611f6a
--- /dev/null
+++ b/lib/models/gen/message.atd
@@ -0,0 +1,29 @@
+type snowflake <ocaml from="Snowflake" t="t"> = abstract
+type user <ocaml from="User" t="t"> = abstract
+type member <ocaml from="Member" t="t"> = abstract
+type partial_member <ocaml from="Member" t="partial_member"> = abstract
+type attachment <ocaml from="Attachment" t="t"> = abstract
+type embed <ocaml from="Embed" t="t"> = abstract
+type reaction <ocaml from="Reaction" t="t"> = abstract
+
+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: snowflake list;
+ ?role_mentions: snowflake list option;
+ attachments: attachment list;
+ embeds: embed list;
+ ?reactions: snowflake list option;
+ ?nonce: snowflake option;
+ pinned: bool;
+ ?webhook_id: snowflake option;
+ kind <json name="type">: int;
+} \ No newline at end of file