summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/Constants.ts36
1 files changed, 24 insertions, 12 deletions
diff --git a/src/util/Constants.ts b/src/util/Constants.ts

index e8e91d69..692f9028 100644 --- a/src/util/Constants.ts +++ b/src/util/Constants.ts
@@ -1,16 +1,28 @@ export enum OPCODES { - Dispatch, - Heartbeat, - Identify, - Presence_Update, - Voice_State_Update, - Dummy_Value, // ? What is opcode 5? - Resume, - Reconnect, - Request_Guild_Members, - Invalid_Session, - Hello, - Heartbeat_ACK, + Dispatch = 0, + Heartbeat = 1, + Identify = 2, + Presence_Update = 3, + Voice_State_Update = 4, + Voice_Server_Ping = 5, // ? What is opcode 5? + Resume = 6, + Reconnect = 7, + Request_Guild_Members = 8, + Invalid_Session = 9, + Hello = 10, + Heartbeat_ACK = 11, + Guild_Sync = 12, + DM_Update = 13, + Lazy_Request = 14, + Lobby_Connect = 15, + Lobby_Disconnect = 16, + Lobby_Voice_States_Update = 17, + Stream_Create = 18, + Stream_Delete = 19, + Stream_Watch = 20, + Stream_Ping = 21, + Stream_Set_Paused = 22, + Request_Application_Commands = 24, } export enum CLOSECODES { Unknown_error = 4000,