mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-25 15:40:28 +08:00
Replace with static import
This commit is contained in:
parent
b0e082000c
commit
4c0daefd67
@ -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.java.JRawCommand
|
||||
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.permission.Permission
|
||||
import net.mamoe.mirai.message.data.MessageChain
|
||||
@ -37,9 +38,9 @@ public abstract class RawCommand(
|
||||
*/
|
||||
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>",
|
||||
/** 指令描述, 用于显示在 [BuiltInCommands.HelpCommand] */
|
||||
|
Loading…
Reference in New Issue
Block a user