diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/Subscribers.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/Subscribers.kt index 92e94fc79..1d2f59044 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/Subscribers.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/Subscribers.kt @@ -136,9 +136,8 @@ suspend inline fun subscribeAll(noinline listeners: s */ @ListenersBuilderDsl @Suppress("MemberVisibilityCanBePrivate", "unused") -class ListenerBuilder( - @PublishedApi - internal val handlerConsumer: suspend (Listener) -> Unit +inline class ListenerBuilder( + @PublishedApi internal inline val handlerConsumer: suspend (Listener) -> Unit ) { suspend inline fun handler(noinline listener: suspend (E) -> ListeningStatus) { handlerConsumer(Handler(listener))