summary refs log tree commit diff
path: root/src/util/WebSocket.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 16:47:52 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 16:47:52 +0200
commit421cf4c3db9a2810285b123dfd82f116f81d0fa7 (patch)
tree288d33739c2a947522fbb69a320aa4d3c5cbec2b /src/util/WebSocket.ts
parent:bug: fix voicestate (diff)
downloadserver-421cf4c3db9a2810285b123dfd82f116f81d0fa7.tar.xz
:sparkles: rabbitmq
Diffstat (limited to 'src/util/WebSocket.ts')
-rw-r--r--src/util/WebSocket.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/WebSocket.ts b/src/util/WebSocket.ts

index 347d78cb..11db47e0 100644 --- a/src/util/WebSocket.ts +++ b/src/util/WebSocket.ts
@@ -1,6 +1,7 @@ -import { Intents } from "@fosscord/server-util"; +import { Intents, Permissions } from "@fosscord/server-util"; import WS, { Server, Data } from "ws"; import { Deflate } from "zlib"; +import { Channel } from "amqplib"; interface WebSocket extends WS { version: number; @@ -14,6 +15,8 @@ interface WebSocket extends WS { readyTimeout: NodeJS.Timeout; intents: Intents; sequence: number; + rabbitCh?: Channel; + permissions: Record<string, Permissions>; } export default WebSocket;