change command structure

This commit is contained in:
jiahua.liu 2020-05-16 20:26:44 +08:00
parent c9f3cd92dd
commit 162f387c6b

View File

@ -40,8 +40,16 @@ interface Command {
annotation class PrefixOptional() annotation class PrefixOptional()
} }
/**
abstract class CompositeCommand(val name:String, val alias:Array<String> = listOf()):Command{ * 功能最集中的Commend
* 支持且只支持有sub的指令
* :
* /mute add
* /mute remove
* /mute addandremove (sub is case insensitive, lowercase are recommend)
* /mute add and remove('add and remove' consider as a sub)
*/
abstract class CompositeCommand(val name:String, val alias:Array<String> = arrayOf()):Command{
/** /**
* 你应当使用 @SubCommand 来注册 sub 指令 * 你应当使用 @SubCommand 来注册 sub 指令
*/ */