Table of Contents

Class SlashCommandParameterInfo

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

表示 SlashCommandInfo 命令的参数信息类。

public class SlashCommandParameterInfo : CommandParameterInfo, IParameterInfo
Inheritance
SlashCommandParameterInfo
Implements
Inherited Members

Properties

ChannelTypes

获取此选项允许的频道类型。

public IReadOnlyCollection<ChannelType> ChannelTypes { get; }

Property Value

IReadOnlyCollection<ChannelType>

Choices

获取此斜线应用命令参数的参数选择。

public IReadOnlyCollection<ParameterChoice> Choices { get; }

Property Value

IReadOnlyCollection<ParameterChoice>

Command

获取此参数所属的命令。

public SlashCommandInfo Command { get; }

Property Value

SlashCommandInfo

ComplexParameterFields

获取此参数的构造函数参数(如果 IsComplexParametertrue)。

public IReadOnlyCollection<SlashCommandParameterInfo>? ComplexParameterFields { get; }

Property Value

IReadOnlyCollection<SlashCommandParameterInfo>

Description

获取斜线命令参数的描述。

public string? Description { get; }

Property Value

string

HeyBoxOptionType

获取此参数所表示的黑盒语音命令选项类型(如果该参数不是复杂参数)。

public SlashCommandOptionType? HeyBoxOptionType { get; }

Property Value

SlashCommandOptionType?

IsComplexParameter

获取此类型是否应被视为复杂参数。

public bool IsComplexParameter { get; }

Property Value

bool

MaxLength

获取字符串类型参数允许的最大长度。

public int? MaxLength { get; }

Property Value

int?

MaxValue

获取数字类型参数允许的最大值。

public double? MaxValue { get; }

Property Value

double?

MinLength

获取字符串类型参数允许的最小长度。

public int? MinLength { get; }

Property Value

int?

MinValue

获取数字类型参数允许的最小值。

public double? MinValue { get; }

Property Value

double?

TypeConverter

获取将用于将传入的 IHeyBoxInteractionData 转换为 ParameterTypeTypeConverter<T>

public TypeConverter TypeConverter { get; }

Property Value

TypeConverter