aboutsummaryrefslogtreecommitdiff
path: root/lib/models/attachment.ml
diff options
context:
space:
mode:
authorAdelyn Breedlove <[email protected]>2019-01-13 16:51:04 -0700
committerAdelyn Breedlove <[email protected]>2019-01-13 16:51:04 -0700
commitc5bfc108ca6a1e7a21492b4318de78a74ed801f9 (patch)
tree191164d198c07cf388d9aae8a54013e5613c272c /lib/models/attachment.ml
parentMore deserialization fixes (diff)
downloaddisml-c5bfc108ca6a1e7a21492b4318de78a74ed801f9.tar.xz
disml-c5bfc108ca6a1e7a21492b4318de78a74ed801f9.zip
Add deriving sexp to models
Diffstat (limited to 'lib/models/attachment.ml')
-rw-r--r--lib/models/attachment.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/models/attachment.ml b/lib/models/attachment.ml
index 5f17a16..c56b389 100644
--- a/lib/models/attachment.ml
+++ b/lib/models/attachment.ml
@@ -1,3 +1,5 @@
+open Core
+
type t = {
id: Snowflake.t;
filename: string;
@@ -6,4 +8,4 @@ type t = {
proxy_url: string;
height: int [@default -1];
width: int [@default -1];
-} [@@deriving yojson { strict = false}] \ No newline at end of file
+} [@@deriving sexp, yojson { strict = false}] \ No newline at end of file