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