discord-api-client

0.1.1 • Public • Published

Discord API Client

Installation

$ npm install --save discord-api-client

Usage

import {Client, Endpoints} from "discord-api-client";

// There are a couple of other options in here, make sure you check them out.
const client = new Client({
    token: "Bot <DISCORD API TOKEN HERE>"
});

const response = await client.request("GET", Endpoints.GATEWAY_BOT);

console.log(response);

License

Large parts of this lib were taken from https://github.com/abalabahaha/eris/

We follow the MIT License supplied in the LICENSE file.

Package Sidebar

Install

npm i discord-api-client

Weekly Downloads

9

Version

0.1.1

License

MIT

Last publish

Collaborators

  • aequasi