mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-04 09:25:23 +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)
|
||||
|
||||
@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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user