@neocord/gateway
v1.3.1
Published
Connects to the discord gateway.
Downloads
3
Readme
A library used to connect to the discord gateway. NeoCord Support • GitHub Repository
Requires node.js v14.x.x to work.
yarn add @neocord/gateway
import { ShardManager, Intents } from "@neocord/gateway";
const manager = new ShardManager({
shards: "auto", // Creates the amount of recommended shards according to discord.
compression: "zlib-sync", // see "1".
useEtf: true, // enables erlpack encoding, requires the "etf.js" module
intents: Intents.DEFAULTS, // Default Intents (defaults to it anyways lol)
...
});
1: Enables zlib compression.
"zlib-sync": requires the zlib-sync package.
"pako": requires the pako package.
"zlib": uses the built-in zlib module node.js provides.