Table of Contents

Class ModalFileUploadAttribute

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

Marks a IModal property as a file upload input.

public class ModalFileUploadAttribute : ModalInputAttribute
Inheritance
ModalFileUploadAttribute
Inherited Members

Constructors

ModalFileUploadAttribute(string, int, int)

public ModalFileUploadAttribute(string customId, int minValues = 1, int maxValues = 1)

Parameters

customId string

Custom ID of the file upload component.

minValues int

Minimum number of files that can be uploaded.

maxValues int

Maximum number of files that can be uploaded.

Properties

ComponentType

Gets the type of the component.

public override ComponentType ComponentType { get; }

Property Value

ComponentType

MaxValues

Get the maximum number of files that can be uploaded.

public int MaxValues { get; set; }

Property Value

int

MinValues

Get the minimum number of files that can be uploaded.

public int MinValues { get; set; }

Property Value

int