Search
Preparing search index...
The search index is not available
Detritus Client
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Detritus Client
commandratelimit
CommandRatelimiter
Class CommandRatelimiter
Hierarchy
CommandRatelimiter
Index
Constructors
constructor
Properties
cache
Methods
get
Exceeded
get
OrCreate
Constructors
constructor
new
Command
Ratelimiter
(
)
:
CommandRatelimiter
Returns
CommandRatelimiter
Properties
Readonly
cache
cache
:
BaseCollection
<
string
,
CommandRatelimitItem
>
= ...
Methods
get
Exceeded
get
Exceeded
(
context
:
Context
|
InteractionContext
, ratelimits
:
CommandRatelimit
[]
, now
?:
number
)
:
{
item
:
CommandRatelimitItem
;
ratelimit
:
CommandRatelimit
;
remaining
:
number
}
[]
Parameters
context:
Context
|
InteractionContext
ratelimits:
CommandRatelimit
[]
now:
number
= ...
Returns
{
item
:
CommandRatelimitItem
;
ratelimit
:
CommandRatelimit
;
remaining
:
number
}
[]
get
OrCreate
get
OrCreate
(
context
:
Context
|
InteractionContext
, ratelimit
:
CommandRatelimit
)
:
CommandRatelimitItem
Parameters
context:
Context
|
InteractionContext
ratelimit:
CommandRatelimit
Returns
CommandRatelimitItem
Exports
commandratelimit
Command
Ratelimit
Command
Ratelimiter
constructor
cache
get
Exceeded
get
OrCreate
Command
Ratelimit
Item
Command
Ratelimit
Options
Command
Ratelimit
Custom
Type
KEY_
SPLITTER
Generated using
TypeDoc