diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-09 01:53:47 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-09 01:53:47 +0200 |
commit | e573b18cfc72ed1c88fe091d25995f195b023424 (patch) | |
tree | 59a6cb62739d8f51a16cd4013dd9b5dffc94dbb4 /gateway/src/opcodes | |
parent | :bug: fix old node version (diff) | |
download | server-e573b18cfc72ed1c88fe091d25995f195b023424.tar.xz |
:bug: fix import
Diffstat (limited to 'gateway/src/opcodes')
-rw-r--r-- | gateway/src/opcodes/Resume.ts | 3 | ||||
-rw-r--r-- | gateway/src/opcodes/VoiceStateUpdate.ts | 3 | ||||
-rw-r--r-- | gateway/src/opcodes/instanceOf.ts | 3 |
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 { |