Table of Contents

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 bool

Whether 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; }

Property Value

bool