summary refs log tree commit diff
path: root/src/assets/codes.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-04 10:25:41 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-04 10:25:41 +0100
commitf5a723d9b491005ec5dd9377802e5d143100e346 (patch)
treec9d7805c918949c05298a11209e8d92dc1e861d9 /src/assets/codes.ts
parentUpdate README.md (diff)
downloadserver-f5a723d9b491005ec5dd9377802e5d143100e346.tar.xz
Merge branch 'master' of https://github.com/discord-open-source/discord-gateway into main
Diffstat (limited to 'src/assets/codes.ts')
-rw-r--r--src/assets/codes.ts31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/assets/codes.ts b/src/assets/codes.ts
new file mode 100644

index 00000000..5b9a5546 --- /dev/null +++ b/src/assets/codes.ts
@@ -0,0 +1,31 @@ +export enum OPCODES { + Dispatch, + Heartbeat, + Identify, + Presence_Update, + Voice_State_Update, + Resume, + Reconnect, + Request_Guild_Members, + Invalid_Session, + Hello, + Heartbeat_ACK, +} +export enum CLOSECODES { + Unknown_error = 4000, + Unknown_opcode, + Decode_error, + Not_authenticated, + Authentication_failed, + Already_authenticated, + Invalid_session, + Invalid_seq, + Rate_limited, + Session_timed_out, + Invalid_shard, + Sharding_required, + Invalid_API_version, + Invalid_intent, + Disallowed_intent, +} +export enum SEQUENCENUM {}