ResolvedCommandCall

interface ResolvedCommandCall

The resolved CommandCall.

Implementation details

ResolvedCommandCall should be immutable, meaning all of its properties must be pure and should be implemented as an immutable property, or delegated by a lazy initializer.

See also

Types

Companion
Link copied to clipboard
object Companion

Properties

callee
Link copied to clipboard
abstract val callee: Command

The callee Command

calleeSignature
Link copied to clipboard
abstract val calleeSignature: CommandSignature

The callee CommandSignature, specifically a sub command from CompositeCommand

caller
Link copied to clipboard
abstract val caller: CommandSender

The CommandSender responsible to this call.

rawValueArguments
Link copied to clipboard
abstract val rawValueArguments: List<CommandValueArgument>

Original arguments

resolvedValueArguments
Link copied to clipboard

Resolved value arguments arranged mapping the CommandSignature.valueParameters by index.

Inheritors

ResolvedCommandCallImpl
Link copied to clipboard

Extensions

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

Invoke this resolved call.

intercepted
Link copied to clipboard

使用 CommandCallInterceptor 依次调用 interceptBeforeCall. 在第一个拦截时返回拦截原因, 在所有 CommandCallInterceptor 都处理完成后返回结果 ResolvedCommandCall