Skip to content

Commit bf6acde

Browse files
authored
Merge pull request #23 from crowbartools/user-command-type
2 parents 4a154c6 + 7a847c2 commit bf6acde

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

types/modules/command-manager.d.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff 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+
8495
type 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

99101
type BasicCommandDefinition = Omit<

0 commit comments

Comments
 (0)