Skip to content

Commit 1ea990f

Browse files
feat(message/attachment): add placeholder fields
1 parent c850c0b commit 1ea990f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/DiscordKitCore/Objects/Data/Attachment.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Attachment.swift
3-
// DiscordAPI
3+
// DiscordKit
44
//
55
// Created by Vincent Kwok on 19/2/22.
66
//
@@ -18,4 +18,8 @@ public struct Attachment: Codable, Identifiable, Equatable, Hashable {
1818
public let height: Int? // Height of file (if image)
1919
public let width: Int? // Width of file (if image)
2020
public let ephemeral: Bool?
21+
/// Thumbhash placeholder of image
22+
public let placeholder: String?
23+
/// Version of the contents of ``placeholder``
24+
public let placeholder_version: Int?
2125
}

0 commit comments

Comments
 (0)