mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-22 13:46:13 +08:00
Annotate subscribeInternal
with @MiraiInternalAPI
This commit is contained in:
parent
f37434c663
commit
afb74ec652
@ -23,8 +23,8 @@ import kotlin.reflect.KClass
|
|||||||
|
|
||||||
val EventLogger: MiraiLoggerWithSwitch = DefaultLogger("Event").withSwitch(false)
|
val EventLogger: MiraiLoggerWithSwitch = DefaultLogger("Event").withSwitch(false)
|
||||||
|
|
||||||
@PublishedApi
|
@MiraiInternalAPI
|
||||||
internal fun <L : Listener<E>, E : Event> KClass<out E>.subscribeInternal(listener: L): L {
|
fun <L : Listener<E>, E : Event> KClass<out E>.subscribeInternal(listener: L): L {
|
||||||
this.listeners().addLast(listener)
|
this.listeners().addLast(listener)
|
||||||
return listener
|
return listener
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user