aboutsummaryrefslogtreecommitdiff
path: root/lib/models/attachment.atd
diff options
context:
space:
mode:
authorAdelyn Breelove <[email protected]>2018-12-13 14:11:54 -0700
committerAdelyn Breelove <[email protected]>2018-12-13 14:11:54 -0700
commit73d115ce6260e97f5f7ee47f743d842ffd292662 (patch)
tree7825358ae1b4736392909cb72ce26cdb26257d23 /lib/models/attachment.atd
parentAdd rate limit handling (diff)
downloaddisml-73d115ce6260e97f5f7ee47f743d842ffd292662.tar.xz
disml-73d115ce6260e97f5f7ee47f743d842ffd292662.zip
Working on deriving types from json
Diffstat (limited to 'lib/models/attachment.atd')
-rw-r--r--lib/models/attachment.atd11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/models/attachment.atd b/lib/models/attachment.atd
new file mode 100644
index 0000000..9757b49
--- /dev/null
+++ b/lib/models/attachment.atd
@@ -0,0 +1,11 @@
+type snowflake <ocaml from="Snowflake" t="t"> = abstract
+
+type t = {
+ id: snowflake;
+ filename: string;
+ size: int;
+ url: string;
+ proxy_url: string;
+ ?height: int option;
+ ?width: int option;
+} \ No newline at end of file