diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/internal/InternalEventListeners.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/internal/InternalEventListeners.kt index 2a9f8f3b7..14e69a1e5 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/internal/InternalEventListeners.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/internal/InternalEventListeners.kt @@ -23,8 +23,8 @@ import kotlin.reflect.KClass val EventLogger: MiraiLoggerWithSwitch = DefaultLogger("Event").withSwitch(false) -@PublishedApi -internal fun , E : Event> KClass.subscribeInternal(listener: L): L { +@MiraiInternalAPI +fun , E : Event> KClass.subscribeInternal(listener: L): L { this.listeners().addLast(listener) return listener }