DiscordAttachment
public struct DiscordAttachment
Represents an attachment.
-
The snowflake id of this attachment.
Declaration
Swift
public let id: AttachmentID
-
The name of the file.
Declaration
Swift
public let filename: String
-
The height, if this is an image.
Declaration
Swift
public let height: Int?
-
The proxy url for this attachment.
Declaration
Swift
public let proxyUrl: URL
-
The size of this attachment.
Declaration
Swift
public let size: Int
-
The url of this attachment.
Declaration
Swift
public let url: URL
-
The width, if this is an image.
Declaration
Swift
public let width: Int?