summary refs log tree commit diff
path: root/gateway/src/opcodes
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 01:53:47 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-09 01:53:47 +0200
commite573b18cfc72ed1c88fe091d25995f195b023424 (patch)
tree59a6cb62739d8f51a16cd4013dd9b5dffc94dbb4 /gateway/src/opcodes
parent:bug: fix old node version (diff)
downloadserver-e573b18cfc72ed1c88fe091d25995f195b023424.tar.xz
:bug: fix import
Diffstat (limited to 'gateway/src/opcodes')
-rw-r--r--gateway/src/opcodes/Resume.ts3
-rw-r--r--gateway/src/opcodes/VoiceStateUpdate.ts3
-rw-r--r--gateway/src/opcodes/instanceOf.ts3
3 files changed, 6 insertions, 3 deletions
diff --git a/gateway/src/opcodes/Resume.ts b/gateway/src/opcodes/Resume.ts
index 398cce25..42dc586d 100644
--- a/gateway/src/opcodes/Resume.ts
+++ b/gateway/src/opcodes/Resume.ts
@@ -1,4 +1,5 @@
-import { WebSocket, Payload, Send } from "@fosscord/gateway";
+import { WebSocket, Payload } from "@fosscord/gateway";
+import { Send } from "../util/Send";
 
 export async function onResume(this: WebSocket, data: Payload) {
 	console.log("Got Resume -> cancel not implemented");
diff --git a/gateway/src/opcodes/VoiceStateUpdate.ts b/gateway/src/opcodes/VoiceStateUpdate.ts
index 084c5766..321e6b17 100644
--- a/gateway/src/opcodes/VoiceStateUpdate.ts
+++ b/gateway/src/opcodes/VoiceStateUpdate.ts
@@ -1,5 +1,6 @@
 import { VoiceStateUpdateSchema } from "../schema/VoiceStateUpdateSchema";
-import { Payload, WebSocket, genVoiceToken } from "@fosscord/gateway";
+import { Payload, WebSocket } from "@fosscord/gateway";
+import { genVoiceToken } from "../util/SessionUtils";
 import { check } from "./instanceOf";
 import {
 	Config,
diff --git a/gateway/src/opcodes/instanceOf.ts b/gateway/src/opcodes/instanceOf.ts
index 37d513ad..6fd50852 100644
--- a/gateway/src/opcodes/instanceOf.ts
+++ b/gateway/src/opcodes/instanceOf.ts
@@ -1,5 +1,6 @@
 import { instanceOf } from "lambert-server";
-import { WebSocket, CLOSECODES } from "@fosscord/gateway";
+import { WebSocket } from "@fosscord/gateway";
+import { CLOSECODES } from "../util/Constants";
 
 export function check(this: WebSocket, schema: any, data: any) {
 	try {