Fix build

This commit is contained in:
Him188 2020-05-22 20:47:40 +08:00
parent 4bbf6549a7
commit 4de8a6b01c

View File

@ -15,7 +15,6 @@ import net.mamoe.mirai.console.command.description.CommandParam
import net.mamoe.mirai.console.command.description.CommandParserContext import net.mamoe.mirai.console.command.description.CommandParserContext
import net.mamoe.mirai.console.command.description.EmptyCommandParserContext import net.mamoe.mirai.console.command.description.EmptyCommandParserContext
import net.mamoe.mirai.console.command.description.plus import net.mamoe.mirai.console.command.description.plus
import net.mamoe.mirai.console.plugins.MyArg
import net.mamoe.mirai.message.data.PlainText import net.mamoe.mirai.message.data.PlainText
import net.mamoe.mirai.message.data.SingleMessage import net.mamoe.mirai.message.data.SingleMessage
import kotlin.reflect.KAnnotatedElement import kotlin.reflect.KAnnotatedElement
@ -104,7 +103,7 @@ abstract class CompositeCommand @JvmOverloads constructor(
this::class.declaredFunctions.filter { it.hasAnnotation<SubCommand>() }.map { function -> this::class.declaredFunctions.filter { it.hasAnnotation<SubCommand>() }.map { function ->
SubCommandDescriptor( SubCommandDescriptor(
arrayOf(function.name), arrayOf(function.name),
arrayOf(CommandParam("p", MyArg::class)), arrayOf(),
"", "",
CommandPermission.Default, CommandPermission.Default,
onCommand = block { sender: CommandSender, args: Array<out Any> -> onCommand = block { sender: CommandSender, args: Array<out Any> ->