diff options
| author | Adelyn Breelove <[email protected]> | 2019-02-12 14:53:29 -0700 |
|---|---|---|
| committer | Adelyn Breelove <[email protected]> | 2019-02-12 14:53:29 -0700 |
| commit | 88ca350f4b1be2dd31e1362573f9613ab1ff5387 (patch) | |
| tree | 66e35d7ec6cf331c03b3f24c10a60a68f369fda8 /lib/gateway/event.mli | |
| parent | Update README (diff) | |
| download | disml-88ca350f4b1be2dd31e1362573f9613ab1ff5387.tar.xz disml-88ca350f4b1be2dd31e1362573f9613ab1ff5387.zip | |
Update types :)
Diffstat (limited to 'lib/gateway/event.mli')
| -rw-r--r-- | lib/gateway/event.mli | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/gateway/event.mli b/lib/gateway/event.mli index d4a539b..4db3c84 100644 --- a/lib/gateway/event.mli +++ b/lib/gateway/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 |