Class DiscordFileUploadComponent
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
A file upload component.
public sealed class DiscordFileUploadComponent : DiscordComponent, ILabelComponent
- Inheritance
-
DiscordFileUploadComponent
- Implements
- Inherited Members
Constructors
- DiscordFileUploadComponent(string, int, int, bool)
Constructs a new DiscordFileUploadComponent.
Properties
- CustomId
The custom Id of this file upload component. This is sent back when files are uploaded.
- Disabled
Whether this component can be used.
- MaximumValues
The maximum amount of files that can be uploaded. Must be greater than or equal to
1or MinimumValues. Defaults to1.
- MinimumValues
The minimum amount of files that can be uploaded. Must be less than or equal to MaximumValues. Defaults to
1.
- Required
Whether this file upload component is required. For modals.
- Values
The submitted values of this file upload component. The values are attachment ids. This is only available in DiscordInteractionData.
Methods
- Disable()
Disables this component.
- Enable()
Enables this component if it was disabled before.
- SetState(bool)
Enables or disables this component.
- WithId(int)
Assigns a unique id to the components.