Probably broken merge from webrtc

This commit is contained in:
Madeline
2022-09-16 13:19:33 +10:00
parent 725491a69d
commit 493c21968b
35 changed files with 864 additions and 749 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import { VoiceOPCodes } from "@fosscord/webrtc";
export enum OPCODES {
Dispatch = 0,
Heartbeat = 1,
@@ -43,7 +45,7 @@ export enum CLOSECODES {
}
export interface Payload {
op: OPCODES;
op: OPCODES | VoiceOPCodes;
d?: any;
s?: number;
t?: string;
+2
View File
@@ -1,6 +1,7 @@
import { Intents, Permissions } from "@fosscord/util";
import WS from "ws";
import { Deflate, Inflate } from "fast-zlib";
import { Client } from "@fosscord/webrtc";
export interface WebSocket extends WS {
version: number;
@@ -21,4 +22,5 @@ export interface WebSocket extends WS {
events: Record<string, Function>;
member_events: Record<string, Function>;
listen_options: any;
client?: Client;
}
+2 -2
View File
@@ -77,8 +77,8 @@
"baseUrl": ".",
"paths": {
"@fosscord/gateway": ["src/index.ts"],
"@fosscord/gateway/*": ["src/*"]
"@fosscord/util": ["../util/src"]
"@fosscord/util": ["../util/src/index"],
"@fosscord/webrtc": ["../webrtc/src/index"]
},
"plugins": [{ "transform": "@zerollup/ts-transform-paths" }]
}