summary refs log tree commit diff
path: root/gateway
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-01-13 20:02:09 +0000
committerGitHub <noreply@github.com>2022-01-13 23:02:09 +0300
commit4f6a1a8e12a04696692f61efa2df161b9b669848 (patch)
treefc3690824ed61b4bb1f141e34baedc6cda19ba7b /gateway
parentFix typo in commit 277b28c (diff)
downloadserver-4f6a1a8e12a04696692f61efa2df161b9b669848.tar.xz
Add erlpack warning (#587)
* Add warning if erlpack is missing

Co-authored-by: Erkin Alp Güney <erkinalp9035@gmail.com>
Diffstat (limited to 'gateway')
-rw-r--r--gateway/src/util/Send.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/gateway/src/util/Send.ts b/gateway/src/util/Send.ts
index 196d4205..c8627b03 100644
--- a/gateway/src/util/Send.ts
+++ b/gateway/src/util/Send.ts
@@ -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) {