UNPKG

@zikeji/hypixel

Version:

With IntelliSense support & test coverage, this is an unopinionated async/await API wrapper for Hypixel's Public API. It is developed in TypeScript complete with documentation, typed interfaces for all API responses, built-in rate-limit handling, flexible

12 lines (10 loc) 290 B
/* istanbul ignore file */ export class RateLimitError extends Error { /** * Ignore this for code coverage as reproducing a real rate limit error is difficult. */ constructor(message: string) { super(message); Object.setPrototypeOf(this, RateLimitError.prototype); } }