Table of Contents

Class FileUploadComponent

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents a component that allows users to upload files in modals.

public class FileUploadComponent : IInteractableComponent, IMessageComponent
Inheritance
FileUploadComponent
Implements
Inherited Members

Properties

CustomId

Gets the custom ID of this component.

public string CustomId { get; }

Property Value

string

Id

Gets the ID of this component.

public int? Id { get; }

Property Value

int?

IsRequired

Gets whether this component requires a file upload to be submitted.

public bool IsRequired { get; }

Property Value

bool

MaxValues

Gets the maximum number of files a user can upload.

public int? MaxValues { get; }

Property Value

int?

MinValues

Gets the minimum number of files a user must upload.

public int? MinValues { get; }

Property Value

int?

Type

Gets the ComponentType of this Message Component.

public ComponentType Type { get; }

Property Value

ComponentType

Methods

ToBuilder()

public FileUploadComponentBuilder ToBuilder()

Returns

FileUploadComponentBuilder