Attachment

public struct Attachment

Attachment Type

  • The filename for this Attachment

    Declaration

    Swift

    public let filename: String
  • Height of image (if image)

    Declaration

    Swift

    public let height: Int?
  • id

    ID of attachment

    Declaration

    Swift

    public let id: Snowflake
  • The proxied URL for this attachment

    Declaration

    Swift

    public let proxyUrl: String
  • Size of the file in bytes

    Declaration

    Swift

    public let size: Int
  • url

    The original URL of the attachment

    Declaration

    Swift

    public let url: String
  • Width of image (if image)

    Declaration

    Swift

    public let width: Int?