CommandExecuteResult
指令的执行返回
Types
Link copied to clipboard
class ExecutionFailed( val exception: Throwable, val command: Command, val call: CommandCall, val resolvedCall: ResolvedCommandCall) : CommandExecuteResult.Failure
Content copied to clipboard
指令方法调用过程出现了错误
Link copied to clipboard
指令执行失败
Link copied to clipboard
class IllegalArgument( val exception: IllegalCommandArgumentException, val command: Command, val call: CommandCall, val resolvedCall: ResolvedCommandCall) : CommandExecuteResult.Failure
Content copied to clipboard
执行执行时发生了一个非法参数错误
Link copied to clipboard
class Intercepted( val call: CommandCall?, val resolvedCall: ResolvedCommandCall?, val command: Command?, val reason: InterceptedReason) : CommandExecuteResult.Failure
Content copied to clipboard
没有匹配的指令
Link copied to clipboard
class PermissionDenied( val command: Command, val call: CommandCall, val resolvedCall: ResolvedCommandCall) : CommandExecuteResult.Failure
Content copied to clipboard
权限不足
Link copied to clipboard
class Success( val command: Command, val call: CommandCall, val resolvedCall: ResolvedCommandCall) : CommandExecuteResult
Content copied to clipboard
指令执行成功
Link copied to clipboard
class UnmatchedSignature( val command: Command, val call: CommandCall, val failureReasons: List<UnmatchedCommandSignature>) : CommandExecuteResult.Failure
Content copied to clipboard
没有匹配的指令
Link copied to clipboard
class UnresolvedCommand(val call: CommandCall?) : CommandExecuteResult.Failure
Content copied to clipboard
没有匹配的指令
Properties
Inheritors
Extensions
Link copied to clipboard
Link copied to clipboard
当 this 为 CommandExecuteResult.Success 时返回 true