mirai-core / net.mamoe.mirai.message / MessagePacket / downloadAndClose

downloadAndClose

suspend fun Image.downloadAndClose(output: OutputStream): Unit
suspend fun Image.downloadAndClose(output: Output): Unit
suspend fun Image.downloadAndClose(output: ByteWriteChannel): Unit

下载图片到 output 并关闭这个 output