Skip to main content

DiscordFileUploadComponent

Documentation


Documentation / @discordeno/types / DiscordFileUploadComponent

Interface: DiscordFileUploadComponent

Defined in: discord/components.ts:746

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

Extends

Properties

custom_id

custom_id: string

Defined in: discord/components.ts:750

The custom id for the file upload


id?

optional id?: number

Defined in: discord/components.ts:100

32 bit integer used as an optional identifier for component

Inherited from

DiscordBaseComponent.id


max_values?

optional max_values?: number

Defined in: discord/components.ts:767

The maximum number of files that can be uploaded

Remarks

Between 1-10

Default

1

min_values?

optional min_values?: number

Defined in: discord/components.ts:759

The minimum number of files that must be uploaded

Remarks

Between 0-10

Default

1

required?

optional required?: boolean

Defined in: discord/components.ts:773

Whether this component is required to be filled

Default

true

type

type: FileUpload

Defined in: discord/components.ts:747

The type of the component

Overrides

DiscordBaseComponent.type