Table of Contents

Class ChoiceValueAttribute

Namespace
HeyBox.Interactions
Assembly
HeyBox.Net.Interactions.dll

自定义斜线命令选项枚举的显示值。仅适用于默认枚举类型转换器。

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

Constructors

ChoiceValueAttribute(string)

修改斜线命令参数的默认值。

public ChoiceValueAttribute(string value)

Parameters

value string

参数值。

Properties

Value

获取参数值。

public string Value { get; }

Property Value

string