diff options
| author | Adelyn Breelove <[email protected]> | 2019-02-04 13:21:52 -0700 |
|---|---|---|
| committer | Adelyn Breelove <[email protected]> | 2019-02-04 13:21:52 -0700 |
| commit | 62b7689d0af62daee569e7d8ab3c641af756e6ef (patch) | |
| tree | fb0777298a29ffb1f92c79350681f1fe55248ae5 /lib/event.mli | |
| parent | Opt to never force close unix fd before writer is flushed (diff) | |
| download | disml-62b7689d0af62daee569e7d8ab3c641af756e6ef.tar.xz disml-62b7689d0af62daee569e7d8ab3c641af756e6ef.zip | |
Update yojson to 1.6.0
Diffstat (limited to 'lib/event.mli')
| -rw-r--r-- | lib/event.mli | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/event.mli b/lib/event.mli index d4a539b..4db3c84 100644 --- a/lib/event.mli +++ b/lib/event.mli @@ -16,7 +16,7 @@ type t = | GUILD_BAN_ADD of GuildBanAdd.t
| GUILD_BAN_REMOVE of GuildBanRemove.t
| GUILD_EMOJIS_UPDATE of GuildEmojisUpdate.t
-(* | GUILD_INTEGRATIONS_UPDATE of Yojson.Safe.json *)
+(* | GUILD_INTEGRATIONS_UPDATE of Yojson.Safe.t *)
| GUILD_MEMBER_ADD of GuildMemberAdd.t
| GUILD_MEMBER_REMOVE of GuildMemberRemove.t
| GUILD_MEMBER_UPDATE of GuildMemberUpdate.t
@@ -34,16 +34,16 @@ type t = | PRESENCE_UPDATE of PresenceUpdate.t
| TYPING_START of TypingStart.t
| USER_UPDATE of UserUpdate.t
-(* | VOICE_STATE_UPDATE of Yojson.Safe.json *)
-(* | VOICE_SERVER_UPDATE of Yojson.Safe.json *)
+(* | VOICE_STATE_UPDATE of Yojson.Safe.t *)
+(* | VOICE_SERVER_UPDATE of Yojson.Safe.t *)
| WEBHOOK_UPDATE of WebhookUpdate.t
| UNKNOWN of Unknown.t
(** Used to convert an event string and payload into a t wrapper type. *)
-val event_of_yojson : contents:Yojson.Safe.json -> string -> t
+val event_of_yojson : contents:Yojson.Safe.t -> string -> t
(** Sends the event to the registered handler. *)
val dispatch : t -> unit
(** Wrapper to other functions. This is called from the shards. *)
-val handle_event : ev:string -> Yojson.Safe.json -> unit
\ No newline at end of file +val handle_event : ev:string -> Yojson.Safe.t -> unit
\ No newline at end of file |