1 files changed, 4 insertions, 2 deletions
diff --git a/src/opcodes/PresenceUpdate.ts b/src/opcodes/PresenceUpdate.ts
index 95cf2306..e6a389ba 100644
--- a/src/opcodes/PresenceUpdate.ts
+++ b/src/opcodes/PresenceUpdate.ts
@@ -1,4 +1,6 @@
-import { Payload } from "../util/Constants";
+import { CLOSECODES, Payload } from "../util/Constants";
import WebSocket from "../util/WebSocket";
-export function onPresenceUpdate(this: WebSocket, data: Payload) {}
+export function onPresenceUpdate(this: WebSocket, data: Payload) {
+ return this.close(CLOSECODES.Unknown_error);
+}
|