Table of Contents

Class InputLabelAttribute

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

Creates a custom label for an modal input.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public class InputLabelAttribute : Attribute
Inheritance
InputLabelAttribute
Inherited Members

Constructors

InputLabelAttribute(string, string)

Creates a custom label for an modal input.

public InputLabelAttribute(string label, string description = null)

Parameters

label string

The label of the input.

description string

The label description of the input.

Properties

Description

Gets the label description of the input.

public string Description { get; set; }

Property Value

string

Label

Gets the label of the input.

public string Label { get; }

Property Value

string