API reference
Constructor DiscordFileUploadComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DiscordFileUploadComponent(string, int, int, bool, string[]?)
Constructs a new DiscordFileUploadComponent.
public DiscordFileUploadComponent(string customId = null, int minOptions = 1, int maxOptions = 1, bool required = true, string[]? fileTypes = null)
Parameters
customIdstringThe Id to assign to the file upload component.
minOptionsintMinimum count of files allowed to upload.
maxOptionsintMaximum count of files allowed to upload.
requiredboolWhether the file upload is required.
fileTypesstring[]The file types to filter for; dot-prefixed,
image,audioandvideo. (Max 10)