aboutsummaryrefslogtreecommitdiff
path: root/lib/models/id/channel_id.ml
diff options
context:
space:
mode:
authorMatias Goldfeld <[email protected]>2021-01-28 02:26:36 -0500
committerMatias Goldfeld <[email protected]>2021-01-28 02:26:36 -0500
commitc937240fdd2036edd493debb76117165e4084e8b (patch)
treeb0d89ca5795724b3bb804f2d65ee609217567ecd /lib/models/id/channel_id.ml
parentMore Int64 refactors (diff)
downloaddisml-c937240fdd2036edd493debb76117165e4084e8b.tar.xz
disml-c937240fdd2036edd493debb76117165e4084e8b.zip
Started conversion to ppx_yojson_conv
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 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);