seyfert
Preparing search index...
ComponentCommand
Class ComponentCommand
Abstract
Index
Constructors
constructor
Properties
__
file
Path?
component
Type
custom
Id?
middlewares
props
type
Accessors
c
Type
Methods
filter?
on
After
Run?
on
Before
Middlewares?
on
Internal
Error?
on
Middlewares
Error?
on
Run
Error?
run
Constructors
constructor
new
ComponentCommand
()
:
ComponentCommand
Returns
ComponentCommand
Properties
Optional
__
file
Path
__filePath
?:
string
Abstract
component
Type
componentType
:
keyof
ContextComponentCommandInteractionMap
Optional
custom
Id
customId
?:
string
|
RegExp
middlewares
middlewares
:
never
[]
= []
props
props
:
ExtraProps
type
type
:
0
= InteractionCommandType.COMPONENT
Accessors
c
Type
get
cType
()
:
number
Returns
number
Methods
Optional
filter
filter
(
context
:
ComponentContext
<
keyof
ContextComponentCommandInteractionMap
>
,
)
:
boolean
|
Promise
<
boolean
>
Parameters
context
:
ComponentContext
<
keyof
ContextComponentCommandInteractionMap
>
Returns
boolean
|
Promise
<
boolean
>
Optional
on
After
Run
onAfterRun
(
context
:
ComponentContext
,
error
:
unknown
)
:
any
Parameters
context
:
ComponentContext
error
:
unknown
Returns
any
Optional
on
Before
Middlewares
onBeforeMiddlewares
(
context
:
ComponentContext
)
:
any
Parameters
context
:
ComponentContext
Returns
any
Optional
on
Internal
Error
onInternalError
(
client
:
UsingClient
,
error
?:
unknown
)
:
any
Parameters
client
:
UsingClient
Optional
error
:
unknown
Returns
any
Optional
on
Middlewares
Error
onMiddlewaresError
(
context
:
ComponentContext
,
error
:
string
)
:
any
Parameters
context
:
ComponentContext
error
:
string
Returns
any
Optional
on
Run
Error
onRunError
(
context
:
ComponentContext
,
error
:
unknown
)
:
any
Parameters
context
:
ComponentContext
error
:
unknown
Returns
any
Abstract
run
run
(
context
:
ComponentContext
<
keyof
ContextComponentCommandInteractionMap
>
)
:
any
Parameters
context
:
ComponentContext
<
keyof
ContextComponentCommandInteractionMap
>
Returns
any
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
__
file
Path
component
Type
custom
Id
middlewares
props
type
Accessors
c
Type
Methods
filter
on
After
Run
on
Before
Middlewares
on
Internal
Error
on
Middlewares
Error
on
Run
Error
run
seyfert
Loading...