diff options
| author | Adelyn Breedlove <[email protected]> | 2019-01-13 16:51:04 -0700 |
|---|---|---|
| committer | Adelyn Breedlove <[email protected]> | 2019-01-13 16:51:04 -0700 |
| commit | c5bfc108ca6a1e7a21492b4318de78a74ed801f9 (patch) | |
| tree | 191164d198c07cf388d9aae8a54013e5613c272c /lib/models/reaction_t.ml | |
| parent | More deserialization fixes (diff) | |
| download | disml-c5bfc108ca6a1e7a21492b4318de78a74ed801f9.tar.xz disml-c5bfc108ca6a1e7a21492b4318de78a74ed801f9.zip | |
Add deriving sexp to models
Diffstat (limited to 'lib/models/reaction_t.ml')
| -rw-r--r-- | lib/models/reaction_t.ml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/models/reaction_t.ml b/lib/models/reaction_t.ml index 2e9aad5..c382b68 100644 --- a/lib/models/reaction_t.ml +++ b/lib/models/reaction_t.ml @@ -1,12 +1,14 @@ +open Core + type reaction_event = { user_id: Snowflake.t; channel_id: Snowflake.t; message_id: Snowflake.t; guild_id: Snowflake.t option [@default None]; emoji: Emoji.partial_emoji; -} [@@deriving yojson] +} [@@deriving sexp, yojson] type t = { count: int; emoji: Emoji.t; -} [@@deriving yojson { strict = false}]
\ No newline at end of file +} [@@deriving sexp, yojson { strict = false}]
\ No newline at end of file |