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
Choices
获取此斜线应用命令参数的参数选择。
public IReadOnlyCollection<ParameterChoice> Choices { get; }
Property Value
Command
获取此参数所属的命令。
public SlashCommandInfo Command { get; }
Property Value
ComplexParameterFields
获取此参数的构造函数参数(如果 IsComplexParameter 为 true)。
public IReadOnlyCollection<SlashCommandParameterInfo>? ComplexParameterFields { get; }
Property Value
Description
获取斜线命令参数的描述。
public string? Description { get; }
Property Value
HeyBoxOptionType
获取此参数所表示的黑盒语音命令选项类型(如果该参数不是复杂参数)。
public SlashCommandOptionType? HeyBoxOptionType { get; }
Property Value
IsComplexParameter
获取此类型是否应被视为复杂参数。
public bool IsComplexParameter { get; }
Property Value
MaxLength
获取字符串类型参数允许的最大长度。
public int? MaxLength { get; }
Property Value
- int?
MaxValue
获取数字类型参数允许的最大值。
public double? MaxValue { get; }
Property Value
MinLength
获取字符串类型参数允许的最小长度。
public int? MinLength { get; }
Property Value
- int?
MinValue
获取数字类型参数允许的最小值。
public double? MinValue { get; }
Property Value
TypeConverter
获取将用于将传入的 IHeyBoxInteractionData 转换为 ParameterType 的 TypeConverter<T>。
public TypeConverter TypeConverter { get; }