From c937240fdd2036edd493debb76117165e4084e8b Mon Sep 17 00:00:00 2001 From: Matias Goldfeld <2000matu@gmail.com> Date: Thu, 28 Jan 2021 02:26:36 -0500 Subject: Started conversion to ppx_yojson_conv --- lib/models/channel/channel.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/models/channel/channel.ml') diff --git a/lib/models/channel/channel.ml b/lib/models/channel/channel.ml index 4d7b29d..52eda02 100644 --- a/lib/models/channel/channel.ml +++ b/lib/models/channel/channel.ml @@ -6,7 +6,7 @@ exception No_message_found let send_message ?embed ?content ?file ?(tts=false) ch = let embed = match embed with - | Some e -> Embed.to_yojson e + | Some e -> Embed.yojson_of_t e | None -> `Null in let content = match content with | Some c -> `String c -- cgit v1.2.3