reply

启动监听器, 在 Bot 未被禁言且消息满足条件 this 时回复原消息


open infix fun MessageSubscribersBuilder.ListeningFilter<M, Ret, R, RR>.reply(replier: suspend M.(String) -> Any?): Ret

启动监听器, 在 Bot 未被禁言且消息满足条件 this 时执行 replier 并以其返回值回复. 返回值 Unit 将被忽略, Message 将被直接回复, 其他内容将会 Any.toString 后发送.


open infix fun String.reply(reply: String): Ret
open infix fun String.reply(reply: Message): Ret

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


open infix fun String.reply(replier: suspend M.(String) -> Any?): Ret

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