diff options
Diffstat (limited to 'lib/opcode.mli')
| -rw-r--r-- | lib/opcode.mli | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/opcode.mli b/lib/opcode.mli new file mode 100644 index 0000000..e07f82e --- /dev/null +++ b/lib/opcode.mli @@ -0,0 +1,18 @@ +type t = + | DISPATCH + | HEARTBEAT + | IDENTIFY + | STATUS_UPDATE + | VOICE_STATE_UPDATE + | RESUME + | RECONNECT + | REQUEST_GUILD_MEMBERS + | INVALID_SESSION + | HELLO + | HEARTBEAT_ACK + +exception Invalid_Opcode of int + +val to_int : t -> int +val from_int : int -> t +val to_string : t -> string
\ No newline at end of file |