mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-10 08:35:19 +00:00
Add erlpack warning (#587)
* Add warning if erlpack is missing Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
var erlpack: any;
|
||||
try {
|
||||
erlpack = require("@yukikaze-bot/erlpack");
|
||||
} catch (error) {}
|
||||
} catch (error) {
|
||||
console.log("Missing @yukikaze-bot/erlpack, electron-based desktop clients designed for discord.com will not be able to connect!");
|
||||
}
|
||||
import { Payload, WebSocket } from "@fosscord/gateway";
|
||||
|
||||
export async function Send(socket: WebSocket, data: Payload) {
|
||||
|
||||
Reference in New Issue
Block a user