1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-25 21:12:40 +08:00

Change Image.toString format to contain more information

This commit is contained in:
Him188 2022-05-19 15:36:26 +01:00
parent 149b77c05b
commit 796df9b79f

View File

@ -17,7 +17,7 @@ import net.mamoe.mirai.utils.MiraiLogger
*/
// moved from mirai-core-api since 2.11
internal sealed class AbstractImage : Image {
private val _stringValue: String? by lazy(LazyThreadSafetyMode.NONE) { "[mirai:image:$imageId]" }
private val _stringValue: String? by lazy(LazyThreadSafetyMode.NONE) { "[mirai:image:$imageId, width=$width, height=$height, size=$size, type=$imageType, isEmoji=$isEmoji]" }
override val size: Long
get() = 0L