$ npm install --save discord-api-client
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);
Large parts of this lib were taken from https://github.com/abalabahaha/eris/
We follow the MIT License supplied in the LICENSE file.