interface RawFileEncodable

external
interface RawFileEncodable extends JSONEncodable<RESTAPIAttachment>

Represents an object capable of representing itself as a raw file attachment. Objects implementing this interface can return binary file data to be sent as part of multipart/form-data requests.

external
getRawFile() : Partial<RawFile> | undefined

Returns the raw file of an attachment.

external
toJSON() : Value

Transforms this object to its JSON format

Inherited from: JSONEncodable