mirai-core / net.mamoe.mirai.utils / getValue

getValue

operator fun <T> UnsafeWeakRef<T>.getValue(thisRef: Any?, property: KProperty<*>): T

Provides delegate value.

val bot: Bot by param.unsafeWeakRef()