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