diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-01-13 20:02:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-13 23:02:09 +0300 |
commit | 4f6a1a8e12a04696692f61efa2df161b9b669848 (patch) | |
tree | fc3690824ed61b4bb1f141e34baedc6cda19ba7b /gateway | |
parent | Fix typo in commit 277b28c (diff) | |
download | server-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.ts | 4 |
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) { |