mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
16 lines
516 B
TypeScript
16 lines
516 B
TypeScript
import type { Dispatcher } from 'undici';
|
|
import type { RequestOptions } from '../REST';
|
|
import type { HandlerRequestData, RouteData } from '../RequestManager';
|
|
|
|
export interface IHandler {
|
|
queueRequest: (
|
|
routeId: RouteData,
|
|
url: string,
|
|
options: RequestOptions,
|
|
requestData: HandlerRequestData,
|
|
) => Promise<Dispatcher.ResponseData>;
|
|
// eslint-disable-next-line @typescript-eslint/method-signature-style -- This is meant to be a getter returning a bool
|
|
get inactive(): boolean;
|
|
readonly id: string;
|
|
}
|