DiscordFileUpload

public struct DiscordFileUpload

Represents a file to be uploaded to Discord.

  • The file data.

    Declaration

    Swift

    public let data: Data
  • The filename.

    Declaration

    Swift

    public let filename: String
  • The mime type.

    Declaration

    Swift

    public let mimeType: String
  • Constructs a new DiscordFileUpload.

    Declaration

    Swift

    public init(data: Data, filename: String, mimeType: String)

    Parameters

    data

    The file data

    filename

    The filename

    mimeType

    The mime type