mirai-core / net.mamoe.mirai.event / kotlinx.coroutines.CoroutineScope / subscribeFriendMessages

subscribeFriendMessages

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

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

See Also

CoroutineScope.incoming