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

reply

open infix fun MessageSelectionTimeoutChecker.reply(block: suspend () -> Any?): Unit

在超时后回复原消息

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

See Also

timeout

quoteReply

open infix fun MessageSelectionTimeoutChecker.reply(message: Message): Unit
open infix fun MessageSelectionTimeoutChecker.reply(message: String): Unit