BuiltInCommand

interface BuiltInCommand : Command

Properties

description
Link copied to clipboard
abstract val description: String

描述, 用于显示在 BuiltInCommands.HelpCommand

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

指令可能的参数列表.

owner
Link copied to clipboard
abstract val owner: CommandOwner

指令拥有者.

permission
Link copied to clipboard
abstract val permission: Permission

为此指令分配的权限.

prefixOptional
Link copied to clipboard

true 时表示 指令前缀 可选.

primaryName
Link copied to clipboard
abstract val primaryName: String

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

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

次要指令名

usage
Link copied to clipboard
abstract val usage: String

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