Class RequiredInputAttribute
Sets the input as required or optional.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class RequiredInputAttribute : Attribute
Constructors
| Improve this Doc View SourceRequiredInputAttribute(Boolean)
Sets the input as required or optional.
Declaration
public RequiredInputAttribute(bool isRequired = true)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isRequired | Whether or not user input is required for this input. |
Properties
| Improve this Doc View SourceIsRequired
Gets whether or not user input is required for this input.
Declaration
public bool IsRequired { get; }
Property Value
Type | Description |
---|---|
Boolean |