Annotate subscribeInternal with @MiraiInternalAPI

This commit is contained in:
Him188 2020-02-14 19:21:43 +08:00
parent f37434c663
commit afb74ec652

View File

@ -23,8 +23,8 @@ import kotlin.reflect.KClass
val EventLogger: MiraiLoggerWithSwitch = DefaultLogger("Event").withSwitch(false)
@PublishedApi
internal fun <L : Listener<E>, E : Event> KClass<out E>.subscribeInternal(listener: L): L {
@MiraiInternalAPI
fun <L : Listener<E>, E : Event> KClass<out E>.subscribeInternal(listener: L): L {
this.listeners().addLast(listener)
return listener
}