You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to


export declare interface RawFile
export declare interface RawFile
Represents a file to be added to the request
Content-Type of the file
data:Buffer_2 | boolean | number | string
The actual data for the file
An explicit key to use for key of the formdata field for this file. When not provided, the index of the file in the files array is used in the form files[${index}]. If you wish to alter the placeholder snowflake, you must provide this property in the same form (files[${placeholder}])
The name of the file