aboutsummaryrefslogtreecommitdiff
path: root/lib/opcode.mli
diff options
context:
space:
mode:
authorAdelyn Breelove <[email protected]>2019-01-17 09:47:39 -0700
committerAdelyn Breelove <[email protected]>2019-01-17 09:47:39 -0700
commit8760c74b63eb44acad13829ef41b2e705f031ecb (patch)
tree90240eaaafc8f033c707fa00fdb3837ba485c0b9 /lib/opcode.mli
parentMember methods are here (diff)
parentnew event dispatching (diff)
downloaddisml-8760c74b63eb44acad13829ef41b2e705f031ecb.tar.xz
disml-8760c74b63eb44acad13829ef41b2e705f031ecb.zip
Resolve non-ff merge
Diffstat (limited to 'lib/opcode.mli')
-rw-r--r--lib/opcode.mli18
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