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

subscribeGroupMessages

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

订阅来自这个 Bot 的所有群消息事件

Parameters

coroutineContext - 给事件监听协程的额外的 CoroutineContext

See Also

CoroutineScope.incoming