From 4de8a6b01cd46b70ca0948b7bc1d930fd0de6724 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 22 May 2020 20:47:40 +0800 Subject: [PATCH] Fix build --- .../src/main/kotlin/net/mamoe/mirai/console/command/Command.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt index f9b568763..87e5f775e 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt @@ -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.EmptyCommandParserContext 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.SingleMessage import kotlin.reflect.KAnnotatedElement @@ -104,7 +103,7 @@ abstract class CompositeCommand @JvmOverloads constructor( this::class.declaredFunctions.filter { it.hasAnnotation() }.map { function -> SubCommandDescriptor( arrayOf(function.name), - arrayOf(CommandParam("p", MyArg::class)), + arrayOf(), "", CommandPermission.Default, onCommand = block { sender: CommandSender, args: Array ->