@neocord/gateway
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published


A library used to connect to the discord gateway.
NeoCord SupportGitHub Repository

Requires node.js v14.x.x to work.

yarn add @neocord/gateway

Basic Usage

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.


Licensed under the MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i @neocord/gateway

Weekly Downloads

1

Version

1.3.1

License

MIT

Unpacked Size

57.6 kB

Total Files

21

Last publish

Collaborators

  • the2dperson