resource

val resource: Resource(source)

当前 OneBotImage 中的资源信息。 如果 Data.url 不为 null(即此消息是接收到的) 则 resource 代表接收到的资源信息,否则代表用于发送的 Data.file 的资源信息。