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

quoteReply

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

在超时后引用回复原消息

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

See Also

timeout

reply

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


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

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


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

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

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

启动这个监听器, 在满足条件时执行 replier 并引用回复原消息