This package has been deprecated

Author message:

Klasa has been discontinued. Use at your own risk.

@klasa/rest
TypeScript icon, indicating that this package has built-in type declarations

0.5.4 • Public • Published

@klasa/rest

This is a request handler for the discord api and is responsible for handling all ratelimits. This utilizes the latest headers for millisecond precision and hash bucket grouping. Because of that maximum throughput is possible without hard-coding any rates or limits. This library also features 100% unit test coverage.

Simple Example:

import { REST, Routes } from '@klasa/rest';
import * as config from './config.json';

const rest = new REST();

rest.token = config.token;

rest.get(Routes.oauthApplication())
    .then(console.log);

Readme

Keywords

none

Package Sidebar

Install

npm i @klasa/rest

Weekly Downloads

8

Version

0.5.4

License

MIT

Unpacked Size

71.5 kB

Total Files

27

Last publish

Collaborators

  • cyberiumshadow
  • vladfrangu
  • kyranet