mirai-core / net.mamoe.mirai.utils / java.lang.ref.WeakReference / getValue

getValue

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

Provides delegate value.

val bot: Bot? by param.weakRef()