Skip to content

Commit

Permalink
feat(message/attachment): add placeholder fields
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoAlgorithm committed May 17, 2024
1 parent c850c0b commit 1ea990f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/DiscordKitCore/Objects/Data/Attachment.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Attachment.swift
// DiscordAPI
// DiscordKit
//
// Created by Vincent Kwok on 19/2/22.
//
Expand All @@ -18,4 +18,8 @@ public struct Attachment: Codable, Identifiable, Equatable, Hashable {
public let height: Int? // Height of file (if image)
public let width: Int? // Width of file (if image)
public let ephemeral: Bool?
/// Thumbhash placeholder of image
public let placeholder: String?
/// Version of the contents of ``placeholder``
public let placeholder_version: Int?
}

0 comments on commit 1ea990f

Please sign in to comment.