mirai-core / net.mamoe.mirai.event / MessageSelectBuilder / reply

reply

open infix fun MessageSelectionTimeoutChecker.reply(block: suspend () -> Any?): Nothing
Deprecated: Using `reply` DSL in message selection is prohibited

在超时后回复原消息

block 返回值为 Unit 时不回复, 为 Message 时回复 Message, 其他将 toString 后回复为 PlainText

See Also

timeout

quoteReply

open infix fun MessageSelectionTimeoutChecker.reply(message: String): Nothing
Deprecated: Using `reply` DSL in message selection is prohibited


open infix fun MessageSelectionTimeoutChecker.reply(message: Message): Nothing
Deprecated: Using `reply` DSL in message selection is prohibited

open fun String.reply(reply: String): Nothing
Deprecated: Using `reply` DSL in message selection is prohibited


open fun String.reply(reply: Message): Nothing
Deprecated: Using `reply` DSL in message selection is prohibited

当发送的消息内容为 this 就回复 reply

open fun String.reply(replier: suspend M.(String) -> Any?): Nothing
Deprecated: Using `reply` DSL in message selection is prohibited

当发送的消息内容为 this 就执行并回复 replier 的返回值

open fun ListeningFilter<M, Unit, R, Any?>.reply(toReply: String): Nothing
Deprecated: Using `reply` DSL in message selection is prohibited


open fun ListeningFilter<M, Unit, R, Any?>.reply(message: Message): Nothing
Deprecated: Using `reply` DSL in message selection is prohibited


open fun ListeningFilter<M, Unit, R, Any?>.reply(replier: suspend M.(String) -> Any?): Nothing
Deprecated: Using `reply` DSL in message selection is prohibited

启动这个监听器, 在满足条件时回复原消息