summary refs log tree commit diff
path: root/src/opcodes/index.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 04:07:32 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 04:07:32 +0200
commit6b61c86e3fc828454742587e768f5aaca167b64c (patch)
tree2defaadd927bcf4b2e73e899641ed31bb1cebe3f /src/opcodes/index.ts
parent:sparkles: Ready event (diff)
downloadserver-6b61c86e3fc828454742587e768f5aaca167b64c.tar.xz
:art: add opcodes
Diffstat (limited to 'src/opcodes/index.ts')
-rw-r--r--src/opcodes/index.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/opcodes/index.ts b/src/opcodes/index.ts

index d3b4180b..fa57f568 100644 --- a/src/opcodes/index.ts +++ b/src/opcodes/index.ts
@@ -2,6 +2,7 @@ import { Payload } from "../util/Constants"; import WebSocket from "../util/WebSocket"; import { onHeartbeat } from "./Heartbeat"; import { onIdentify } from "./Identify"; +import { onLazyRequest } from "./LazyRequest"; import { onPresenceUpdate } from "./PresenceUpdate"; import { onRequestGuildMembers } from "./RequestGuildMembers"; import { onResume } from "./Resume"; @@ -14,6 +15,11 @@ export default { 2: onIdentify, 3: onPresenceUpdate, 4: onVoiceStateUpdate, - 5: onResume, + // 5: Voice Server Ping + 6: onResume, + // 7: Reconnect: You should attempt to reconnect and resume immediately. 8: onRequestGuildMembers, + // 9: Invalid Session + // 10: Hello + 14: onLazyRequest, };