ComponentCommand
Signature
export interface ComponentCommandProperties
7Methods
7Properties
__filePath?: string;type: 0;abstract componentType: keyof ContextComponentCommandInteractionMap;customId?: string | RegExp;middlewares: readonly (keyof ResolvedRegisteredMiddlewares)[];props: ExtraProps;cTypeGetterget cType(): number;Methods
filter?(context: ComponentContext<typeof this.componentType>): Promise<boolean> | boolean;abstract run(context: ComponentContext<typeof this.componentType>): any;onBeforeMiddlewares?(context: ComponentContext<typeof this.componentType>): any;onAfterRun?(context: ComponentContext<typeof this.componentType>, error: unknown | undefined): any;onRunError?(context: ComponentContext<typeof this.componentType>, error: unknown): any;onMiddlewaresError?(context: ComponentContext<typeof this.componentType>, error: string, metadata: PluginMiddlewareDenialMetadata): any;onInternalError?(client: UsingClient, component: ComponentCommand, error?: unknown): any;