Search
Preparing search index...
The search index is not available
Detritus Client
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Detritus Client
commandratelimit
CommandRatelimit
Class CommandRatelimit
Command Ratelimit Options and Cache
Hierarchy
CommandRatelimit
Index
Constructors
constructor
Properties
command
duration
key
limit
type
Accessors
unique
Key
Methods
create
Key
Constructors
constructor
new
Command
Ratelimit
(
options
?:
boolean
|
CommandRatelimit
|
CommandRatelimitOptions
, command
?:
Command
<
any
>
|
InteractionCommand
<
ParsedArgs
>
|
InteractionCommandOption
<
ParsedArgs
>
)
:
CommandRatelimit
Parameters
options:
boolean
|
CommandRatelimit
|
CommandRatelimitOptions
= {}
Optional
command:
Command
<
any
>
|
InteractionCommand
<
ParsedArgs
>
|
InteractionCommandOption
<
ParsedArgs
>
Returns
CommandRatelimit
Properties
Optional
command
command
:
Command
<
any
>
|
InteractionCommand
<
ParsedArgs
>
|
InteractionCommandOption
<
ParsedArgs
>
duration
duration
:
number
= 5000
Optional
key
key
:
string
limit
limit
:
number
= 5
type
type
:
CommandRatelimitCustomType
|
CommandRatelimitTypes
= ...
Accessors
unique
Key
get
uniqueKey
(
)
:
string
Returns
string
Methods
create
Key
create
Key
(
context
:
Context
|
InteractionContext
)
:
string
Parameters
context:
Context
|
InteractionContext
Returns
string
Exports
commandratelimit
Command
Ratelimit
constructor
command
duration
key
limit
type
unique
Key
create
Key
Command
Ratelimiter
Command
Ratelimit
Item
Command
Ratelimit
Options
Command
Ratelimit
Custom
Type
KEY_
SPLITTER
Generated using
TypeDoc
Command Ratelimit Options and Cache