Package net.mamoe.mirai.console.command.resolve

Types

Link copied to clipboard
interface CommandCallInterceptor

指令解析和调用拦截器. 用于在指令各解析阶段拦截或转换调用.

Link copied to clipboard
interface CommandCallResolver

The resolver converting a CommandCall into ResolvedCommandCall based on registered []

Link copied to clipboard
class CommandResolveResult
Link copied to clipboard
interface InterceptedReason

拦截原因

Link copied to clipboard
class InterceptResult<T>
Link copied to clipboard
interface ResolvedCommandCall

The resolved CommandCall.

Link copied to clipboard
class ResolvedCommandCallImpl(    val caller: CommandSender,     val callee: Command,     val calleeSignature: CommandSignature,     val rawValueArguments: List<CommandValueArgument>,     context: CommandArgumentContext,     val originalMessage: MessageChain) : ResolvedCommandCall

Default implementation.

Functions

Link copied to clipboard
inline suspend fun ResolvedCommandCall.call()

Invoke this resolved call.

Link copied to clipboard
inline fun <R> CommandResolveResult.fold(onSuccess: (ResolvedCommandCall?) -> R, onFailure: (CommandExecuteResult.Failure) -> R): R
inline fun <T, R> InterceptResult<T>.fold(onIntercepted: (reason: InterceptedReason) -> R, otherwise: (call: T) -> R): R
Link copied to clipboard
inline fun <T : R, R> InterceptResult<T>.getOrElse(onIntercepted: (reason: InterceptedReason) -> R): R
Link copied to clipboard
inline fun InterceptedReason(message: String): InterceptedReason

创建一个 InterceptedReason