File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,25 @@ export interface ApplicationCommand extends CommandBase {
3535// For a MessageCommand we require an additional modCommand property and a handler method
3636export interface MessageCommand extends CommandBase {
3737 handleMessage ( message : ProcessableMessage , context : BotContext ) : Promise < void > ;
38+ handleEditedMessage ?(
39+ oldMessage : ProcessableMessage ,
40+ newMessage : ProcessableMessage ,
41+ context : BotContext ,
42+ ) : Promise < void > ;
3843}
3944
4045// For SpecialCommands we require a pattern and a randomness (<= 1)
4146export interface SpecialCommand extends CommandBase {
4247 readonly randomness : number ;
4348 readonly cooldownTime ?: number ;
49+
4450 matches ( message : ProcessableMessage , context : BotContext ) : boolean ;
4551
4652 handleSpecialMessage ( message : ProcessableMessage , context : BotContext ) : Promise < void > ;
53+
54+ handleEditedSpecialMessage ?(
55+ oldMessage : ProcessableMessage ,
56+ newMessage : ProcessableMessage ,
57+ context : BotContext ,
58+ ) : Promise < void > ;
4759}
You can’t perform that action at this time.
0 commit comments