Class RequiredInputAttribute
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Sets the input as required or optional.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class RequiredInputAttribute : Attribute
- Inheritance
-
RequiredInputAttribute
- Inherited Members
Constructors
RequiredInputAttribute(bool)
Sets the input as required or optional.
public RequiredInputAttribute(bool isRequired = true)
Parameters
isRequired
boolWhether or not user input is required for this input.
Properties
IsRequired
Gets whether or not user input is required for this input.
public bool IsRequired { get; }