From 41a193dff0911da78fe080f610478ecabeb6184a Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 9 Oct 2021 01:45:02 +0200 Subject: :art: fix imports with new build script --- gateway/src/opcodes/Heartbeat.ts | 4 +++- gateway/src/opcodes/Identify.ts | 17 ++++------------- gateway/src/opcodes/LazyRequest.ts | 4 +++- 3 files changed, 10 insertions(+), 15 deletions(-) (limited to 'gateway/src/opcodes') diff --git a/gateway/src/opcodes/Heartbeat.ts b/gateway/src/opcodes/Heartbeat.ts index 46caee56..50394130 100644 --- a/gateway/src/opcodes/Heartbeat.ts +++ b/gateway/src/opcodes/Heartbeat.ts @@ -1,4 +1,6 @@ -import { Payload, Send, setHeartbeat, WebSocket } from "@fosscord/gateway"; +import { Payload, WebSocket } from "@fosscord/gateway"; +import { setHeartbeat } from "../util/Heartbeat"; +import { Send } from "../util/Send"; export async function onHeartbeat(this: WebSocket, data: Payload) { // TODO: validate payload diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts index 8233aade..6decf21c 100644 --- a/gateway/src/opcodes/Identify.ts +++ b/gateway/src/opcodes/Identify.ts @@ -1,14 +1,6 @@ +import { WebSocket, Payload } from "@fosscord/gateway"; import { - WebSocket, - CLOSECODES, - Payload, - OPCODES, - genSessionId, -} from "@fosscord/gateway"; -import { - Channel, checkToken, - Guild, Intents, Member, ReadyEventData, @@ -16,16 +8,15 @@ import { Session, EVENTEnum, Config, - dbConnection, - PublicMemberProjection, PublicMember, - ChannelType, PublicUser, PrivateUserProjection, } from "@fosscord/util"; +import { Send } from "../util/Send"; +import { CLOSECODES, OPCODES } from "../util/Constants"; +import { genSessionId } from "../util/SessionUtils"; import { setupListener } from "../listener/listener"; import { IdentifySchema } from "../schema/Identify"; -import { Send } from "@fosscord/gateway/util/Send"; // import experiments from "./experiments.json"; const experiments: any = []; import { check } from "./instanceOf"; diff --git a/gateway/src/opcodes/LazyRequest.ts b/gateway/src/opcodes/LazyRequest.ts index 5b6ac444..d37e32da 100644 --- a/gateway/src/opcodes/LazyRequest.ts +++ b/gateway/src/opcodes/LazyRequest.ts @@ -5,7 +5,9 @@ import { Role, } from "@fosscord/util"; import { LazyRequest } from "../schema/LazyRequest"; -import { WebSocket, Send, OPCODES, Payload } from "@fosscord/gateway"; +import { Send } from "../util/Send"; +import { OPCODES } from "../util/Constants"; +import { WebSocket, Payload } from "@fosscord/gateway"; import { check } from "./instanceOf"; import "missing-native-js-functions"; -- cgit 1.5.1