Search...

populateSuccessfulResponse

export declare function populateSuccessfulResponse(res: ServerResponse, data: Dispatcher.ResponseData): Promise<void>;
export declare function populateSuccessfulResponse(res: ServerResponse, data: Dispatcher.ResponseData): Promise<void>;
Populates a server response with the data from a Discord 2xx REST response
NameTypeOptionalDescription
resServerResponseNoThe server response to populate
dataDispatcher.ResponseDataNoThe data to populate the response with