mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-03 01:39:35 +08:00
Add JvmBlockingBridge for Image.queryUrl
This commit is contained in:
parent
eb8f6c8829
commit
557c933e61
@ -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"
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user