From b9ee77f8153090e9d47e73ab195540d10720c7b6 Mon Sep 17 00:00:00 2001 From: Adelyn Breelove Date: Thu, 10 Jan 2019 13:12:49 -0700 Subject: AAAAAAAAAAAAAAAAAAAAAAAA --- lib/models/reaction_t.ml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 lib/models/reaction_t.ml (limited to 'lib/models/reaction_t.ml') diff --git a/lib/models/reaction_t.ml b/lib/models/reaction_t.ml new file mode 100644 index 0000000..00bebe6 --- /dev/null +++ b/lib/models/reaction_t.ml @@ -0,0 +1,4 @@ +type t = { + count: int; + emoji: Emoji.t; +} [@@deriving yojson] \ No newline at end of file -- cgit v1.2.3 From b7f8f0de01c5014703376d7204b62d8e47c9179a Mon Sep 17 00:00:00 2001 From: Adelyn Breelove Date: Thu, 10 Jan 2019 16:15:20 -0700 Subject: Fix some deserializing bits --- lib/models/reaction_t.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/models/reaction_t.ml') diff --git a/lib/models/reaction_t.ml b/lib/models/reaction_t.ml index 00bebe6..f60561e 100644 --- a/lib/models/reaction_t.ml +++ b/lib/models/reaction_t.ml @@ -1,4 +1,4 @@ type t = { count: int; emoji: Emoji.t; -} [@@deriving yojson] \ No newline at end of file +} [@@deriving yojson { strict = false}] \ No newline at end of file -- cgit v1.2.3 From cba1fa3ab1b085600f3a73dae62682d21d112afb Mon Sep 17 00:00:00 2001 From: Adelyn Breelove Date: Fri, 11 Jan 2019 12:44:22 -0700 Subject: More deserialization fixes --- lib/models/reaction_t.ml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/models/reaction_t.ml') diff --git a/lib/models/reaction_t.ml b/lib/models/reaction_t.ml index f60561e..2e9aad5 100644 --- a/lib/models/reaction_t.ml +++ b/lib/models/reaction_t.ml @@ -1,3 +1,11 @@ +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] + type t = { count: int; emoji: Emoji.t; -- cgit v1.2.3 From c5bfc108ca6a1e7a21492b4318de78a74ed801f9 Mon Sep 17 00:00:00 2001 From: Adelyn Breedlove Date: Sun, 13 Jan 2019 16:51:04 -0700 Subject: Add deriving sexp to models --- lib/models/reaction_t.ml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/models/reaction_t.ml') 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 -- cgit v1.2.3