aboutsummaryrefslogtreecommitdiff
path: root/lib/opcode.mli
diff options
context:
space:
mode:
authorAdelyn Breedlove <[email protected]>2019-01-17 00:01:54 -0700
committerAdelyn Breedlove <[email protected]>2019-01-17 00:01:54 -0700
commit2d023e5cf9d880349686c137e530581765e65891 (patch)
tree041cb510c57e65fa6732c89e75e346ab17a30f56 /lib/opcode.mli
parenteliminate all functors in favour of a simpler approach (diff)
downloaddisml-2d023e5cf9d880349686c137e530581765e65891.tar.xz
disml-2d023e5cf9d880349686c137e530581765e65891.zip
more mlis
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