setup listeners

This commit is contained in:
Flam3rboy
2021-02-10 22:05:17 +01:00
parent caafbc606c
commit 3f8c652d68
7 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { Payload } from "../util/Constants";
import { CLOSECODES, Payload } from "../util/Constants";
import { Send } from "../util/Send";
import { setHeartbeat } from "../util/setHeartbeat";
import WebSocket from "../util/WebSocket";
+4 -2
View File
@@ -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);
}
+4 -2
View File
@@ -1,5 +1,7 @@
import { Payload } from "../util/Constants";
import { CLOSECODES, Payload } from "../util/Constants";
import WebSocket from "../util/WebSocket";
export function onRequestGuildMembers(this: WebSocket, data: Payload) {}
export function onRequestGuildMembers(this: WebSocket, data: Payload) {
return this.close(CLOSECODES.Unknown_error);
}
+1 -1
View File
@@ -1,4 +1,4 @@
import { Payload } from "../util/Constants";
import { CLOSECODES, Payload } from "../util/Constants";
import WebSocket from "../util/WebSocket";
+1 -1
View File
@@ -1,4 +1,4 @@
import { Payload } from "../util/Constants";
import { CLOSECODES, Payload } from "../util/Constants";
import WebSocket from "../util/WebSocket";