interface RawFileEncodable

export 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 ofmultipart/form-data requests.

getRawFile() : Partial<RawFile> | undefined

Returns the raw file of an attachment.

toJSON() : Value

Transforms this object to its JSON format

Inherited from: JSONEncodable