You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

populateSuccessfulResponse

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