aboutsummaryrefslogtreecommitdiff
path: root/lib/models/id/channel_id.ml
diff options
context:
space:
mode:
authorMatias Goldfeld <[email protected]>2021-01-29 13:40:29 -0500
committerMatias Goldfeld <[email protected]>2021-01-29 13:40:29 -0500
commit7ad203a0249bd9db50dfb1df4adb9b7483406e30 (patch)
tree52696cb3e1c16a84513fb90fe50c3738ce4539cb /lib/models/id/channel_id.ml
parentStarted conversion to ppx_yojson_conv (diff)
downloaddisml-7ad203a0249bd9db50dfb1df4adb9b7483406e30.tar.xz
disml-7ad203a0249bd9db50dfb1df4adb9b7483406e30.zip
Revert "Started conversion to ppx_yojson_conv"
This reverts commit c937240fdd2036edd493debb76117165e4084e8b.
Diffstat (limited to 'lib/models/id/channel_id.ml')
-rw-r--r--lib/models/id/channel_id.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/id/channel_id.ml b/lib/models/id/channel_id.ml
index 6c08711..7c62d84 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.yojson_of_t e
+ | Some e -> Embed.to_yojson 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.yojson_of_t m)]
+ | Some m -> `Assoc [("message_id", Message_id.to_yojson m)]
| None -> `Null in
Http.create_message ?files (get_id ch) (`Assoc [
("embed", embed);