mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Composite Command Test pass
This commit is contained in:
parent
b66142545c
commit
86f23e5452
@ -144,7 +144,7 @@ abstract class CompositeCommand @JvmOverloads constructor(
|
||||
|
||||
val parameter = function.parameters.toMutableList()
|
||||
if (parameter.isEmpty()){
|
||||
throw IllegalParameterException("First parameter (receiver for kotlin) for sub commend " + function.name + " from " + this.getPrimaryName() + " should be <out CommandSender>")
|
||||
throw IllegalParameterException("First parameter (receiver for kotlin) for sub commend " + function.name + " from " + this.primaryName + " should be <out CommandSender>")
|
||||
}
|
||||
|
||||
if (notStatic) {
|
||||
|
Loading…
Reference in New Issue
Block a user