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

@@ -294,7 +294,7 @@ export class RequestManager extends EventEmitter {
* @param request All the information needed to make a request
* @returns The response from the api request
*/
public async queueRequest(request: InternalRequest): Promise<unknown> {
public async queueRequest(request: InternalRequest): Promise<Dispatcher.ResponseData> {
// Generalize the endpoint to its route data
const routeId = RequestManager.generateRouteData(request.fullRoute, request.method);
// Get the bucket hash for the generic route, or point to a global route otherwise