feat: REST#raw (#7929)

This commit is contained in:
DD
2022-05-17 17:31:19 +03:00
committed by GitHub
parent 5e9b757a37
commit dfe449c253
5 changed files with 19 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
import type { Dispatcher } from 'undici';
import type { RequestOptions } from '../REST';
import type { HandlerRequestData, RouteData } from '../RequestManager';
@@ -7,7 +8,7 @@ export interface IHandler {
url: string,
options: RequestOptions,
requestData: HandlerRequestData,
) => Promise<unknown>;
) => 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;