CommandCall

interface CommandCall

Unresolved CommandCall.

Implementation details

CommandCall 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

Properties

calleeName
Link copied to clipboard
abstract val calleeName: String

One of callee Command's Command.allNames.

caller
Link copied to clipboard
abstract val caller: CommandSender

The CommandSender responsible to this call.

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

Explicit value arguments parsed from raw MessageChain or implicit ones deduced by the CommandCallResolver.

Inheritors

CommandCallImpl
Link copied to clipboard

Extensions

intercepted
Link copied to clipboard
fun CommandCall.intercepted(): InterceptResult<CommandCall>

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

resolve
Link copied to clipboard