@pikokr/command.ts / Exports / ApplicationCommandComponent
Class: ApplicationCommandComponent
Hierarchy
-
↳
ApplicationCommandComponent
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new ApplicationCommandComponent(options
): ApplicationCommandComponent
Parameters
Name | Type |
---|---|
options | UserApplicationCommandData | MessageApplicationCommandData | Omit <ChatInputApplicationCommandData , "options" > |
Returns
Overrides
Defined in
src/applicationCommand/ApplicationCommand.ts:17 (opens in a new tab)
Properties
argTypes
• argTypes: Collection
<number
, ComponentArgument
>
Inherited from
Defined in
src/core/components/BaseComponent.ts:11 (opens in a new tab)
hooks
• hooks: ComponentHookStore
Inherited from
Defined in
src/core/components/BaseComponent.ts:9 (opens in a new tab)
method
• method: AnyFunction
Inherited from
Defined in
src/core/components/BaseComponent.ts:7 (opens in a new tab)
options
• options: ApplicationCommandComponentOptions
Defined in
src/applicationCommand/ApplicationCommand.ts:12 (opens in a new tab)
subcommandGroup
• Optional
subcommandGroup: SubCommandGroup
Defined in
src/applicationCommand/ApplicationCommand.ts:14 (opens in a new tab)
subcommandGroupChild
• Optional
subcommandGroupChild: SubCommandGroupChild
Defined in
src/applicationCommand/ApplicationCommand.ts:15 (opens in a new tab)
Methods
_init
▸ _init(method
, argTypes
): void
Parameters
Name | Type |
---|---|
method | AnyFunction |
argTypes | unknown [] |
Returns
void
Inherited from
Defined in
src/core/components/BaseComponent.ts:13 (opens in a new tab)
execute
▸ execute(target
, args
, beforeCallArgs?
): Promise
<unknown
>
Parameters
Name | Type | Default value |
---|---|---|
target | object | undefined |
args | unknown [] | undefined |
beforeCallArgs | unknown [] | args |
Returns
Promise
<unknown
>
Inherited from
Defined in
src/core/components/BaseComponent.ts:55 (opens in a new tab)
executeGlobalHook
▸ executeGlobalHook(target
, name
, args
): Promise
<void
>
Parameters
Name | Type |
---|---|
target | object |
name | string |
args | unknown [] |
Returns
Promise
<void
>
Inherited from
BaseComponent.executeGlobalHook
Defined in
src/core/components/BaseComponent.ts:21 (opens in a new tab)
executeHook
▸ executeHook(target
, name
, args
): Promise
<void
>
Parameters
Name | Type |
---|---|
target | object |
name | string |
args | unknown [] |
Returns
Promise
<void
>
Inherited from
Defined in
src/core/components/BaseComponent.ts:35 (opens in a new tab)