Class FileUpload

java.lang.Object
net.dv8tion.jda.api.utils.FileUpload
All Implemented Interfaces:
Closeable, AutoCloseable, AttachedFile

public class FileUpload extends Object implements Closeable, AttachedFile
Represents a file that is intended to be uploaded to Discord for arbitrary requests.
This is used to upload data to discord for various purposes.

The InputStream will be closed on consumption by the request. You can use close() to close the stream manually.