File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,19 +81,21 @@ export type CommandDefinition = {
8181 fallbackSubcommand ?: SubCommand | undefined ;
8282} ;
8383
84+ type UserCommand = {
85+ trigger : string ;
86+ args : string [ ] ;
87+ triggeredSubcmd ?: CommandDefinition ;
88+ isInvalidSubcommandTrigger : boolean ;
89+ triggeredArg ?: string ;
90+ subcommandId ?: string ;
91+ commandSender : string ;
92+ senderRoles : string [ ] ;
93+ } ;
94+
8495type SystemCommandTriggerEvent = {
8596 command : CommandDefinition ;
8697 commandOptions : Record < string , any > ;
87- userCommand : {
88- trigger : string ;
89- args : string [ ] ;
90- triggeredSubcmd ?: CommandDefinition ;
91- isInvalidSubcommandTrigger : boolean ;
92- triggeredArg ?: string ;
93- subcommandId ?: string ;
94- commandSender : string ;
95- senderRoles : string [ ] ;
96- } ;
98+ userCommand : UserCommand ;
9799} ;
98100
99101type BasicCommandDefinition = Omit <
You can’t perform that action at this time.
0 commit comments