You are reading the documentation for the
next
version of discord.js. Documentation for v13/v14+ has been moved to
old.discordjs.dev
/
docs
/
packages
/
proxy
/
main
/
RequestHandler%3ATypeAlias
Search...
K
proxy
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
main
Functions
populateAbortErrorResponse
populateErrorResponse
populateGeneralErrorResponse
populateRatelimitErrorResponse
populateSuccessfulResponse
proxyRequests
Types
RequestHandler
RequestHandler
export declare type
RequestHandler
=
(
req
:
IncomingMessage
,
res
:
ServerResponse
)
=>
Awaitable
<
void
>;
export declare type
RequestHandler
=
(req
:
IncomingMessage
,
res
:
ServerResponse
)
=>
Awaitable
<
void
>;
Summary
Represents a simple HTTP request handler