Fix MessageChain.getValue

This commit is contained in:
Karlatemp 2020-12-11 12:33:08 +08:00
parent 17ec354112
commit 83559a00d7
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8

View File

@ -221,7 +221,7 @@ public inline fun <M : SingleMessage> MessageChain.any(key: MessageKey<M>): Bool
* val image: Image by message
*/
@JvmSynthetic
public inline operator fun <reified T : Message> MessageChain.getValue(thisRef: Any?, property: KProperty<*>): T =
public inline operator fun <reified T : SingleMessage> MessageChain.getValue(thisRef: Any?, property: KProperty<*>): T =
this.firstIsInstance()
/**