Skip to main content

FileUploadComponent

Documentation


Documentation / @discordeno/types / FileUploadComponent

Interface: FileUploadComponent

Defined in: discordeno/components.ts:453

https://docs.discord.com/developers/components/reference#file-upload-file-upload-structure

Extends

Properties

customId

customId: string

Defined in: discordeno/components.ts:457

The custom id for the file upload


id?

optional id?: number

Defined in: discordeno/components.ts:42

32 bit integer used as an optional identifier for component

Inherited from

BaseComponent.id


maxValues?

optional maxValues?: number

Defined in: discordeno/components.ts:470

The maximum number of files that can be uploaded

Remarks

Between 1-10


minValues?

optional minValues?: number

Defined in: discordeno/components.ts:464

The minimum number of files that must be uploaded

Remarks

Between 0-10


required?

optional required?: boolean

Defined in: discordeno/components.ts:476

Whether this component is required to be filled

Default

true

type

type: FileUpload

Defined in: discordeno/components.ts:454

The type of the component

Overrides

BaseComponent.type