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 | a07d2d6032c1347553da9d0d80a21cfa32337f5a (patch) | |
tree | dd49221947606d3463e27a39eee9929bd727d3b7 /gateway/src/util/Send.ts | |
parent | Fix typo in commit 277b28c (diff) | |
download | server-a07d2d6032c1347553da9d0d80a21cfa32337f5a.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/src/util/Send.ts')
-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) { |