Class ChoiceDisplayAttribute
- Namespace
- HeyBox.Interactions
- Assembly
- HeyBox.Net.Interactions.dll
自定义斜线命令选项枚举的显示值。仅适用于默认枚举类型转换器。
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)]
public class ChoiceDisplayAttribute : Attribute
- Inheritance
-
ChoiceDisplayAttribute
- Inherited Members
Constructors
ChoiceDisplayAttribute(string)
修改斜线命令参数的默认名称和描述。
public ChoiceDisplayAttribute(string name)
Parameters
name
string参数名称。
Properties
Name
获取参数名称。
public string Name { get; }