mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50:15 +08:00
Fix build
This commit is contained in:
parent
4bbf6549a7
commit
4de8a6b01c
@ -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<SubCommand>() }.map { function ->
|
||||
SubCommandDescriptor(
|
||||
arrayOf(function.name),
|
||||
arrayOf(CommandParam("p", MyArg::class)),
|
||||
arrayOf(),
|
||||
"",
|
||||
CommandPermission.Default,
|
||||
onCommand = block { sender: CommandSender, args: Array<out Any> ->
|
||||
|
Loading…
Reference in New Issue
Block a user