An open API service indexing awesome lists of open source software.

https://github.com/cryptiklemur/discord-api-client

Typescript DIscord ApiClient
https://github.com/cryptiklemur/discord-api-client

Last synced: 5 months ago
JSON representation

Typescript DIscord ApiClient

Awesome Lists containing this project

README

          

# Discord API Client

## Installation

```bash
$ npm install --save discord-api-client
```

## Usage

```typescript
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 "
});

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](./blob/master/LICENSE) file.