discord-api-client
v0.1.1
Published
Typescript Library for the Discord REST API
Downloads
18
Maintainers
Readme
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.