mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-10 06:57:05 +08:00
Fix contentToString
This commit is contained in:
parent
58e4c156e8
commit
da8a78af12
@ -0,0 +1,8 @@
|
||||
package net.mamoe.mirai.utils
|
||||
|
||||
import kotlin.reflect.KProperty1
|
||||
import kotlin.reflect.jvm.javaField
|
||||
|
||||
internal actual fun KProperty1<*, *>.getValueAgainstPermission(receiver: Any): Any? {
|
||||
return this.javaField?.apply { isAccessible = true }?.get(receiver)
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
package net.mamoe.mirai.utils
|
||||
|
||||
import kotlin.reflect.KProperty1
|
||||
import kotlin.reflect.jvm.javaField
|
||||
|
||||
internal actual fun KProperty1<*, *>.getValueAgainstPermission(receiver: Any): Any? {
|
||||
return this.javaField?.apply { isAccessible = true }?.get(receiver)
|
||||
}
|
Loading…
Reference in New Issue
Block a user