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
- Host: GitHub
- URL: https://github.com/cryptiklemur/discord-api-client
- Owner: cryptiklemur
- License: other
- Created: 2018-01-01T10:29:56.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-20T02:31:19.000Z (about 3 years ago)
- Last Synced: 2025-10-10T15:42:27.893Z (8 months ago)
- Language: TypeScript
- Size: 54.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.