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
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
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
Methods
ToBuilder()
Converts a IMessageComponent to a IMessageComponentBuilder.
public FileUploadComponentBuilder ToBuilder()