Table of Contents

Class ChoiceDisplayAttribute

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

Customize the displayed value of a slash command choice enum. Only works with the default enum type converter.

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

Constructors

ChoiceDisplayAttribute(string)

Modify the default name and description values of a Slash Command parameter.

public ChoiceDisplayAttribute(string name)

Parameters

name string

Name of the parameter.

Properties

Name

Gets the name of the parameter.

public string Name { get; }

Property Value

string