mirai-core / net.mamoe.mirai.event / subscribeFriendMessages

subscribeFriendMessages

fun <R> Bot.subscribeFriendMessages(coroutineContext: CoroutineContext = EmptyCoroutineContext, concurrencyKind: ConcurrencyKind = Listener.ConcurrencyKind.CONCURRENT, listeners: FriendMessageSubscribersBuilder.() -> R): R

订阅来自这个 Bot 的所有好友消息事件.

See Also

CoroutineScope.incoming