From 4f6a1a8e12a04696692f61efa2df161b9b669848 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Thu, 13 Jan 2022 20:02:09 +0000 Subject: [PATCH] Add erlpack warning (#587) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add warning if erlpack is missing Co-authored-by: Erkin Alp Güney --- gateway/src/util/Send.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {