Interface IRestEventHandlers

interface IRestEventHandlers {
    apiRequest: (
        method: string,
        options: RequestInit,
    ) => PossiblyAsync<void>;
    apiResponse: (
        method: string,
        response: IRequestSuccess<unknown> | IRequestFailt,
    ) => PossiblyAsync<void>;
    rateLimit: (rateLimitData: IRateLimitData) => PossiblyAsync<void>;
}

Properties

apiRequest: (method: string, options: RequestInit) => PossiblyAsync<void>
apiResponse: (
    method: string,
    response: IRequestSuccess<unknown> | IRequestFailt,
) => PossiblyAsync<void>
rateLimit: (rateLimitData: IRateLimitData) => PossiblyAsync<void>