/discord-api-client

Typescript DIscord ApiClient

Primary LanguageTypeScriptOtherNOASSERTION

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.