npm.io
1.0.0-alpha.9 • Published 6 years ago

@node-discord/core

Licence
MIT
Version
1.0.0-alpha.9
Deps
5
Size
625 kB
Vulns
0
Weekly
0
Stars
5

node-discord

More than just a Discord API Wrapper.

Discord Support Server

NPM Version NPM Downloads Node Verison

Test Status Deploy Status License

Node-discord is a strict TypeScript Discord API Wrapper that focuses on utility and extensibility.
The library implements every core aspect of the Discord API and provides additional tools to assist developers with their needs.

Getting Started

Install the library using NPM or Yarn:

$ npm install @node-discord/core

$ yarn add @node-discord/core

Quick Code Example

Here is a short code example to initialize a Bot and connect it to the Discord gateway.

const { Bot, BotEvent } = require('@node-discord/core');

const bot = new Bot('YOUR BOT TOKEN');

bot.events.on(BotEvent.Ready, () => {
  console.log('Ready!');
});

bot.connect();

Features

Strictly written in TypeScript
Lightweight
Fully supports the Discord API

Coming Features

Fully extendable plugins API
Additional utilities
CLI generator for new projects
Custom ESLint configuration

Optional Libraries

There are multiple optional libraries which could be installed in addition to node-discord to improve performance.

  • erlpack - Provides fast encoding and decoding for WebSocket payloads.
  • zlib-sync - Compresses and decompresses WebSocket payloads before attempting to parse them.

Keywords