namespace Discord.Interactions;
///
/// Marks a property as a file upload input.
///
public class ModalFileUploadAttribute : ModalInputAttribute
{
///
public override ComponentType ComponentType => ComponentType.FileUpload;
///
/// Get the minimum number of files that can be uploaded.
///
public int MinValues { get; set; } = 1;
///
/// Get the maximum number of files that can be uploaded.
///
public int MaxValues { get; set; } = 1;
///
/// Create a new .
///
/// Custom ID of the file upload component.
/// Minimum number of files that can be uploaded.
/// Maximum number of files that can be uploaded.
/// The optional identifier for the component.
public ModalFileUploadAttribute(string customId, int minValues = 1, int maxValues = 1, int id = 0)
: base(customId, id)
{
MinValues = minValues;
MaxValues = maxValues;
}
}