From a07d2d6032c1347553da9d0d80a21cfa32337f5a Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Thu, 13 Jan 2022 20:02:09 +0000 Subject: 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(-) (limited to 'gateway/src/util') 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) { -- cgit 1.4.1