mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
refactor: use eslint-config-neon for packages. (#8579)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
@@ -47,7 +47,7 @@ export function populateGeneralErrorResponse(res: ServerResponse, error: Discord
|
||||
*/
|
||||
export function populateRatelimitErrorResponse(res: ServerResponse, error: RateLimitError): void {
|
||||
res.statusCode = 429;
|
||||
res.setHeader('Retry-After', error.timeToReset / 1000);
|
||||
res.setHeader('Retry-After', error.timeToReset / 1_000);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { IncomingMessage, ServerResponse } from 'node:http';
|
||||
/**
|
||||
* Represents a potentially awaitable value
|
||||
*/
|
||||
export type Awaitable<T> = T | PromiseLike<T>;
|
||||
export type Awaitable<T> = PromiseLike<T> | T;
|
||||
|
||||
/**
|
||||
* Represents a simple HTTP request handler
|
||||
|
||||
Reference in New Issue
Block a user