diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEvent.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEvent.kt index b33afb0a7..fb8e9c447 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEvent.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/event/MessageEvent.kt @@ -92,11 +92,11 @@ abstract class MessagePacketBase : EventPacket suspend inline fun Image.download(): ByteReadPacket = getLink().download() // endregion - suspend inline fun At.qq(): QQ = bot.getQQ(this.target) + inline fun At.qq(): QQ = bot.getQQ(this.target) - suspend inline fun Int.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0).toUInt()) - suspend inline fun Long.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0)) - suspend inline fun UInt.qq(): QQ = bot.getQQ(this) + inline fun Int.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0).toUInt()) + inline fun Long.qq(): QQ = bot.getQQ(this.coerceAtLeastOrFail(0)) + inline fun UInt.qq(): QQ = bot.getQQ(this) suspend inline fun Int.group(): Group = bot.getGroup(this.coerceAtLeastOrFail(0).toUInt()) suspend inline fun Long.group(): Group = bot.getGroup(this.coerceAtLeastOrFail(0))