Replace with static import

This commit is contained in:
Him188 2020-09-18 23:50:57 +08:00
parent b0e082000c
commit 4c0daefd67

View File

@ -15,6 +15,7 @@ import net.mamoe.mirai.console.command.CommandManager.INSTANCE.execute
import net.mamoe.mirai.console.command.CommandManager.INSTANCE.executeCommand import net.mamoe.mirai.console.command.CommandManager.INSTANCE.executeCommand
import net.mamoe.mirai.console.command.java.JRawCommand import net.mamoe.mirai.console.command.java.JRawCommand
import net.mamoe.mirai.console.compiler.common.ResolveContext import net.mamoe.mirai.console.compiler.common.ResolveContext
import net.mamoe.mirai.console.compiler.common.ResolveContext.Kind.COMMAND_NAME
import net.mamoe.mirai.console.internal.command.createOrFindCommandPermission import net.mamoe.mirai.console.internal.command.createOrFindCommandPermission
import net.mamoe.mirai.console.permission.Permission import net.mamoe.mirai.console.permission.Permission
import net.mamoe.mirai.message.data.MessageChain import net.mamoe.mirai.message.data.MessageChain
@ -37,9 +38,9 @@ public abstract class RawCommand(
*/ */
public override val owner: CommandOwner, public override val owner: CommandOwner,
/** 主指令名. */ /** 主指令名. */
@ResolveContext(ResolveContext.Kind.COMMAND_NAME) public override val primaryName: String, @ResolveContext(COMMAND_NAME) public override val primaryName: String,
/** 次要指令名. */ /** 次要指令名. */
@ResolveContext(ResolveContext.Kind.COMMAND_NAME) public override vararg val secondaryNames: String, @ResolveContext(COMMAND_NAME) public override vararg val secondaryNames: String,
/** 用法说明, 用于发送给用户 */ /** 用法说明, 用于发送给用户 */
public override val usage: String = "<no usages given>", public override val usage: String = "<no usages given>",
/** 指令描述, 用于显示在 [BuiltInCommands.HelpCommand] */ /** 指令描述, 用于显示在 [BuiltInCommands.HelpCommand] */