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

Link copied to clipboard
abstract val calleeName: String

One of callee Command's Command.allNames.

Link copied to clipboard
abstract val caller: CommandSender

The CommandSender responsible to this call.

Link copied to clipboard
abstract val originalMessage: MessageChain

Original message

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

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

Inheritors

Link copied to clipboard

Extensions

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

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

Link copied to clipboard