@@ -15,6 +15,12 @@ import type { Plugin } from '../../structures/Plugin';
15
15
export enum LoggerEvents {
16
16
'HANDLER_RUN' = 'handlerRun' ,
17
17
'HANDLER_ERROR' = 'handlerError' ,
18
+ 'COMMAND_HANDLER_RUN' = 'commandHandlerRun' ,
19
+ 'COMMAND_HANDLER_ERROR' = 'commandHandlerError' ,
20
+ 'AUTOCOMPLETE_HANDLER_RUN' = 'autoCompleteHandlerRun' ,
21
+ 'AUTOCOMPLETE_HANDLER_ERROR' = 'autoCompleteHandlerError' ,
22
+ 'COMPONENT_HANDLER_RUN' = 'componentHandlerRun' ,
23
+ 'COMPONENT_HANDLER_ERROR' = 'componentHandlerError' ,
18
24
'COMMAND_REGISTERED' = 'commandRegistered' ,
19
25
'COMMAND_UNREGISTERED' = 'commandUnregistered' ,
20
26
'COMPONENT_REGISTERED' = 'componentRegistered' ,
@@ -27,6 +33,12 @@ export enum LoggerEvents {
27
33
export interface LoggerEventsInterface {
28
34
'handlerRun' : ( ctx : AutocompleteContext | CommandContext | ComponentContext ) => void ;
29
35
'handlerError' : ( ctx : AutocompleteContext | CommandContext | ComponentContext , error : any ) => void ;
36
+ 'commandHandlerRun' : ( ctx : CommandContext ) => void ;
37
+ 'commandHandlerError' : ( ctx : CommandContext , error : any ) => void ;
38
+ 'autoCompleteHandlerRun' : ( ctx : AutocompleteContext ) => void ;
39
+ 'autoCompleteHandlerError' : ( ctx : AutocompleteContext , error : any ) => void ;
40
+ 'componentHandlerRun' : ( ctx : ComponentContext ) => void ;
41
+ 'componentHandlerError' : ( ctx : ComponentContext , error : any ) => void ;
30
42
'commandRegistered' : ( command : Command ) => void ;
31
43
'commandUnregistered' : ( command : Command ) => void ;
32
44
'componentRegistered' : ( component : Component ) => void ;
0 commit comments