subcommand
fun subcommand(name: String, aliases: Array<String> = arrayOf(), description: String? = null, action: CommanderCommandAction? = null, init: CommanderCommand.() -> Unit? = null): CommanderCommand(source)
Create a new subcommand
Return
The created subcommand
Since
0.1.0
Parameters
name
The name of the subcommand
aliases
The aliases of the subcommand
description
The description of the subcommand
action
The action of the subcommand
init
The init function of the subcommand