Add JvmBlockingBridge for Image.queryUrl

This commit is contained in:
Him188 2020-09-08 12:09:54 +08:00
parent eb8f6c8829
commit 557c933e61
2 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,7 @@ object Versions {
const val dokka = "0.10.1"
}
val blockingBridge = "1.0.2"
val blockingBridge = "1.0.5"
object Android {
const val androidGradlePlugin = "3.5.3"

View File

@ -22,6 +22,7 @@
package net.mamoe.mirai.message.data
import net.mamoe.kjbb.JvmBlockingBridge
import net.mamoe.mirai.Bot
import net.mamoe.mirai.contact.Contact
import net.mamoe.mirai.message.code.CodableMessage
@ -192,6 +193,7 @@ public fun Image(imageId: String): OfflineImage = when {
* @return 原图 HTTP 下载链接 ( HTTPS)
* @throws IllegalStateException 当无任何 [Bot] 在线时抛出 (因为无法获取相关协议)
*/
@JvmBlockingBridge
@JvmSynthetic
public suspend fun Image.queryUrl(): String {
@Suppress("DEPRECATION")