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

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val callee: Command

The callee Command

Link copied to clipboard
abstract val calleeSignature: CommandSignature

The callee CommandSignature, specifically a sub command from CompositeCommand

Link copied to clipboard
abstract val caller: CommandSender

The CommandSender responsible to this call.

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

Original arguments

Link copied to clipboard

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

Inheritors

Link copied to clipboard

Extensions

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

Invoke this resolved call.

Link copied to clipboard

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