aboutsummaryrefslogtreecommitdiff
path: root/lib/models/attachment.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/attachment.ml')
-rw-r--r--lib/models/attachment.ml14
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/models/attachment.ml b/lib/models/attachment.ml
index cd04da8..c56b389 100644
--- a/lib/models/attachment.ml
+++ b/lib/models/attachment.ml
@@ -1,3 +1,11 @@
-module Make(Http : S.Http) = struct
- type t = Attachment_t.t
-end \ No newline at end of file
+open Core
+
+type t = {
+ id: Snowflake.t;
+ filename: string;
+ size: int;
+ url: string;
+ proxy_url: string;
+ height: int [@default -1];
+ width: int [@default -1];
+} [@@deriving sexp, yojson { strict = false}] \ No newline at end of file