Table of Contents

Class FileUploadComponentBuilder

Namespace
Discord.Interactions.Builders
Assembly
Discord.Net.Interactions.dll

Represents a builder for creating FileUploadComponentInfo.

public class FileUploadComponentBuilder : InputComponentBuilder<FileUploadComponentInfo, FileUploadComponentBuilder>, IInputComponentBuilder, IModalComponentBuilder
Inheritance
FileUploadComponentBuilder
Implements
Inherited Members

Constructors

FileUploadComponentBuilder(ModalBuilder)

Initializes a new FileUploadComponentBuilder.

public FileUploadComponentBuilder(ModalBuilder modal)

Parameters

modal ModalBuilder

Properties

Instance

protected override FileUploadComponentBuilder Instance { get; }

Property Value

FileUploadComponentBuilder

MaxValues

Gets and sets the maximum number of files that can be uploaded.

public int MaxValues { get; set; }

Property Value

int

MinValues

Gets and sets the minimum number of files that can be uploaded.

public int MinValues { get; set; }

Property Value

int

Methods

WithMaxValues(int)

Sets MinValues.

public FileUploadComponentBuilder WithMaxValues(int maxValues)

Parameters

maxValues int

New value of the MaxValues.

Returns

FileUploadComponentBuilder

The builder instance.

WithMinValues(int)

Sets MinValues.

public FileUploadComponentBuilder WithMinValues(int minValues)

Parameters

minValues int

New value of the MinValues.

Returns

FileUploadComponentBuilder

The builder instance.