Preparing search index...
The search index is not available
Rhidium Core
Rhidium Core
Middleware
CommandMiddleware
Class CommandMiddleware<I, Context>
Type Parameters
I
extends
BaseInteraction
Context
extends
CommandMiddlewareContext
<
I
>
Hierarchy (
view full
)
MiddlewareManager
<
Context
>
CommandMiddleware
Index
Constructors
constructor
Properties
post
Run
Execution
pre
Run
Checks
pre
Run
Execution
pre
Run
Throttle
run
Execution
Return
Values
Methods
run
Middleware
use
Constructors
constructor
new
Command
Middleware
<
I
,
Context
>
(
options
)
:
CommandMiddleware
<
I
,
Context
>
Type Parameters
I
extends
BaseInteraction
<
CacheType
>
Context
extends
CommandMiddlewareContext
<
I
,
object
>
Parameters
options
:
CommandMiddlewareOptions
<
I
,
Context
>
Returns
CommandMiddleware
<
I
,
Context
>
Properties
post
Run
Execution
post
Run
Execution
:
Middleware
<
Context
&
RunResult
>
[]
pre
Run
Checks
pre
Run
Checks
:
Middleware
<
Context
>
[]
pre
Run
Execution
pre
Run
Execution
:
Middleware
<
Context
>
[]
pre
Run
Throttle
pre
Run
Throttle
:
Middleware
<
Context
>
[]
run
Execution
Return
Values
run
Execution
Return
Values
:
RunExecutionReturnValues
<
I
,
Context
>
[]
Methods
run
Middleware
run
Middleware
<
C
>
(
context
,
middlewares
)
:
Promise
<
boolean
>
Type Parameters
C
extends
CommandMiddlewareContext
<
I
,
object
>
Parameters
context
:
C
middlewares
:
Middleware
<
C
>
[]
Returns
Promise
<
boolean
>
use
use
(
middleware
)
:
CommandMiddleware
<
I
,
Context
>
Parameters
middleware
:
CommandMiddlewareOptions
<
I
,
Context
>
Returns
CommandMiddleware
<
I
,
Context
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
post
Run
Execution
pre
Run
Checks
pre
Run
Execution
pre
Run
Throttle
run
Execution
Return
Values
run
Middleware
use
Rhidium Core
Loading...