APIFileUploadComponent
https://docs.discord.com/developers/components/reference#file-upload
Signature
export interface APIFileUploadComponent extends APIBaseComponent<ComponentType.FileUpload>Properties
6Methods
0No methods.
Properties
id?: number;Optional identifier for component
custom_id: string;ID for the file upload; max 100 characters
min_values?: number;Minimum number of items that must be uploaded (defaults to 1); min 0, max 10
max_values?: number;Maximum number of items that can be uploaded (defaults to 1); min 0, max 10
required?: boolean;Whether the file upload is required (defaults to false)
file_types?: FileUploadType[];File types to accept; can contain media groups or dot-prefixed file extensions (maximum of 10)