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

incoming

fun <reified E : BotEvent> Bot.incoming(coroutineContext: CoroutineContext = EmptyCoroutineContext, concurrencyKind: ConcurrencyKind = Listener.ConcurrencyKind.CONCURRENT, capacity: Int = Channel.UNLIMITED): ReceiveChannel<E>

打开一个来自指定 Bot 的指定事件的接收通道

Parameters

capacity - 同 Channel 的参数, 参见 Channel.Factory 中的常量.

See Also

capacity

subscribeFriendMessages

subscribeMessages

subscribeGroupMessages