diff --git a/mirai-core/src/main/java/net/mamoe/mirai/message/defaults/UnsolvedImage.kt b/mirai-core/src/main/java/net/mamoe/mirai/message/defaults/UnsolvedImage.kt index b3cf226b9..731caa314 100644 --- a/mirai-core/src/main/java/net/mamoe/mirai/message/defaults/UnsolvedImage.kt +++ b/mirai-core/src/main/java/net/mamoe/mirai/message/defaults/UnsolvedImage.kt @@ -19,13 +19,13 @@ import javax.imageio.ImageIO /** * 不确定是否存在于服务器的 [Image]. * 必须在发送之前 [UnsolvedImage.upload] 或 [Contact.uploadImage], 否则会发送失败. -x * + * + * @suppress todo 重新设计 * @author Him188moe */ class UnsolvedImage(filename: String, val image: BufferedImage) : Image(getImageId(filename)) { constructor(imageFile: File) : this(imageFile.name, ImageIO.read(imageFile)) constructor(url: URL) : this(File(url.file)) - fun upload(session: LoginSession, contact: Contact): CompletableFuture { return session.expectPacket { toSend { ClientTryGetImageIDPacket(session.bot.account.qqNumber, session.sessionKey, contact.number, image) }