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
/
proxyRequests%3AFunction
Search...
K
proxy
discord.js
brokers
builders
collection
core
formatters
next
proxy
rest
util
voice
ws
main
main
Functions
populateAbortErrorResponse
populateErrorResponse
populateGeneralErrorResponse
populateRatelimitErrorResponse
populateSuccessfulResponse
proxyRequests
Types
RequestHandler
proxyRequests
export declare function
proxyRequests
(
rest
:
REST
)
:
RequestHandler
;
export declare function
proxyRequests
(rest
:
REST
)
:
RequestHandler
;
Summary
Creates an HTTP handler used to forward requests to Discord
Parameters
Name
Type
Optional
Description
rest
REST
No
REST instance to use for the requests