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)
Create a new ModalFileUploadAttribute.
public ModalFileUploadAttribute(string customId, int minValues = 1, int maxValues = 1)
Parameters
customIdstringCustom ID of the file upload component.
minValuesintMinimum number of files that can be uploaded.
maxValuesintMaximum number of files that can be uploaded.
Properties
ComponentType
Gets the type of the component.
public override ComponentType ComponentType { get; }
Property Value
MaxValues
Get the maximum number of files that can be uploaded.
public int MaxValues { get; set; }
Property Value
MinValues
Get the minimum number of files that can be uploaded.
public int MinValues { get; set; }