Preparing search index...
The search index is not available
TouchGuild
TouchGuild
RequestHandler
RequestHandler
Class RequestHandler
Index
Constructors
constructor
Properties
global
Block
latency
Ref
options
ratelimits
ready
Queue
Methods
auth
Request
request
Constructors
constructor
new
RequestHandler
(
manager
:
RESTManager
,
options
?:
RESTOptions
)
:
RequestHandler
Parameters
manager
:
RESTManager
options
:
RESTOptions
= {}
Returns
RequestHandler
Properties
global
Block
globalBlock
:
boolean
= false
latency
Ref
latencyRef
:
LatencyRef
options
options
:
{
agent
:
undefined
|
null
|
Agent
;
baseURL
:
string
;
disableLatencyCompensation
:
boolean
;
host
:
string
;
latencyThreshold
:
number
;
ratelimiterOffset
:
number
;
requestTimeout
:
number
;
userAgent
:
undefined
|
string
;
}
ratelimits
ratelimits
:
Record
<
string
,
sequentialBucket
>
= {}
ready
Queue
readyQueue
:
()
=>
void
[]
= []
Methods
auth
Request
authRequest
<
T
=
unknown
>
(
options
:
Omit
<
RequestOptions
,
"auth"
>
)
:
Promise
<
T
>
Type Parameters
T
=
unknown
Parameters
options
:
Omit
<
RequestOptions
,
"auth"
>
Returns
Promise
<
T
>
request
request
<
T
=
unknown
>
(
options
:
RequestOptions
)
:
Promise
<
T
>
Type Parameters
T
=
unknown
Parameters
options
:
RequestOptions
Returns
Promise
<
T
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
global
Block
latency
Ref
options
ratelimits
ready
Queue
Methods
auth
Request
request
TouchGuild
Loading...