mirai-core / net.mamoe.mirai.event / MessageSubscribersBuilder / <init>
<init>
MessageSubscribersBuilder(stub: RR, subscriber: (M.(String) -> Boolean, MessageListener<M, RR>) -> Ret)
消息订阅构造器
Parameters
M
- 消息类型
R
- 消息监听器内部的返回值
Ret
- 每个 DSL 函数创建监听器之后的返回值
See Also
subscribeFriendMessages