BuiltInCommand

interface BuiltInCommand : Command

Properties

Link copied to clipboard
abstract val description: String

描述, 用于显示在 BuiltInCommands.HelpCommand

Link copied to clipboard
@ConsoleExperimentalApi(message = "Property name is experimental")
abstract val overloads: List<@JvmWildcard CommandSignature>

指令可能的参数列表.

Link copied to clipboard
abstract val owner: CommandOwner

指令拥有者.

Link copied to clipboard
abstract val permission: Permission

为此指令分配的权限.

Link copied to clipboard

true 时表示 指令前缀 可选.

Link copied to clipboard
abstract val primaryName: String

主指令名. 将会参与构成 Permission.id.

Link copied to clipboard
abstract val secondaryNames: Array<out String>

次要指令名

Link copied to clipboard
abstract val usage: String

用法说明, 用于发送给用户. usage 一般包含 description.