mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-07 10:18:25 +08:00
Fix MessageChain.getValue
This commit is contained in:
parent
17ec354112
commit
83559a00d7
@ -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()
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user