SubCommands
Defining SubCommands
class MyCommand extends Command {
name = 'test';
registerSubCommands() {
this.subCommand('name', (ctx) => {
ctx.send('subCommand');
});
}
async run(ctx) {
ctx.send('normal command');
}
}Passing options to your SubCommand
Last updated