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/id/channel_id.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/models/id/channel_id.ml') diff --git a/lib/models/id/channel_id.ml b/lib/models/id/channel_id.ml index 7c62d84..6c08711 100644 --- a/lib/models/id/channel_id.ml +++ b/lib/models/id/channel_id.ml @@ -6,7 +6,7 @@ exception No_message_found let send_message ?embed ?content ?files ?(tts=false) ?reply 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 @@ -15,7 +15,7 @@ let send_message ?embed ?content ?files ?(tts=false) ?reply ch = | `Null, `Null -> raise Invalid_message | _ -> () in let message_reference = match reply with - | Some m -> `Assoc [("message_id", Message_id.to_yojson m)] + | Some m -> `Assoc [("message_id", Message_id.yojson_of_t m)] | None -> `Null in Http.create_message ?files (get_id ch) (`Assoc [ ("embed", embed); -- cgit v1.2.3