From bebe75271cf715797acd36734526004f5b07448b Mon Sep 17 00:00:00 2001 From: mzdluo123 Date: Tue, 18 Aug 2020 20:33:35 +0800 Subject: [PATCH] fix build --- .../jvmMain/kotlin/net/mamoe/mirai/message/SendImageUtilsJvm.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/message/SendImageUtilsJvm.kt b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/message/SendImageUtilsJvm.kt index bd1fa5577..29413c59b 100644 --- a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/message/SendImageUtilsJvm.kt +++ b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/message/SendImageUtilsJvm.kt @@ -129,7 +129,7 @@ public suspend fun File.uploadAsImage(contact: Contact): Image { @MiraiExperimentalAPI @SinceMirai("1.2.0") public suspend fun InputStream.uploadAsGroupVoice(group: Group): Voice { - return group.uploadGroupVoice(this) + return group.uploadVoice(this) } // endregion