mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 23:00:14 +08:00
Add FlashImage.invoke(imageId: String)
This commit is contained in:
parent
cb535bb88d
commit
1af139130d
@ -26,6 +26,12 @@ sealed class FlashImage : MessageContent {
|
||||
else -> throw IllegalArgumentException("不支持的图片类型(Please use GroupImage or FriendImage)")
|
||||
}
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
@JvmName("from")
|
||||
operator fun invoke(imageId: String): FlashImage {
|
||||
return invoke(Image(imageId))
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user