mirai
2.16.0
jvm
mirai-console
/
net.mamoe.mirai.console.command.resolve
/
CommandCallInterceptor
Command
Call
Interceptor
@
ExperimentalCommandDescriptors
interface
CommandCallInterceptor
指令解析和调用拦截器. 用于在指令各解析阶段拦截或转换调用.
Members
Types
Companion
Link copied to clipboard
object
Companion
Functions
intercept
Before
Call
Link copied to clipboard
open
fun
interceptBeforeCall
(
message
:
Message
,
caller
:
CommandSender
)
:
InterceptResult
<
Message
>
?
在指令
语法解析
前调用.
intercept
Call
Link copied to clipboard
open
fun
interceptCall
(
call
:
CommandCall
)
:
InterceptResult
<
CommandCall
>
?
在指令
语法解析
后调用.
intercept
Resolved
Call
Link copied to clipboard
open
fun
interceptResolvedCall
(
call
:
ResolvedCommandCall
)
:
InterceptResult
<
ResolvedCommandCall
>
?
在指令
调用解析
后调用.