Table of Contents

Class SlashCommandParameterInfo

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

Represents the parameter info class for SlashCommandInfo commands.

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

Properties

AutocompleteHandler

Gets the IAutocompleteHandler that's linked to this parameter.

public IAutocompleteHandler AutocompleteHandler { get; }

Property Value

IAutocompleteHandler

ChannelTypes

Gets the allowed channel types for this option.

public IReadOnlyCollection<ChannelType> ChannelTypes { get; }

Property Value

IReadOnlyCollection<ChannelType>

Choices

Gets the parameter choices of this Slash Application Command parameter.

public IReadOnlyCollection<ParameterChoice> Choices { get; }

Property Value

IReadOnlyCollection<ParameterChoice>

Command

public SlashCommandInfo Command { get; }

Property Value

SlashCommandInfo

ComplexParameterFields

Gets the constructor parameters of this parameter, if IsComplexParameter is true.

public IReadOnlyCollection<SlashCommandParameterInfo> ComplexParameterFields { get; }

Property Value

IReadOnlyCollection<SlashCommandParameterInfo>

Description

Gets the description of the Slash Command Parameter.

public string Description { get; }

Property Value

string

DiscordOptionType

Gets the Discord option type this parameter represents. If the parameter is not a complex parameter.

public ApplicationCommandOptionType? DiscordOptionType { get; }

Property Value

ApplicationCommandOptionType?

IsAutocomplete

Gets whether this parameter is configured for Autocomplete Interactions.

public bool IsAutocomplete { get; }

Property Value

bool

IsComplexParameter

Gets whether this type should be treated as a complex parameter.

public bool IsComplexParameter { get; }

Property Value

bool

MaxLength

Gets the maximum length allowed for a string type parameter.

public int? MaxLength { get; }

Property Value

int?

MaxValue

Gets the maximum value permitted for a number type parameter.

public double? MaxValue { get; }

Property Value

double?

MinLength

Gets the minimum length allowed for a string type parameter.

public int? MinLength { get; }

Property Value

int?

MinValue

Gets the minimum value permitted for a number type parameter.

public double? MinValue { get; }

Property Value

double?

TypeConverter

Gets the TypeConverter<T> that will be used to convert the incoming IDiscordInteractionData into ParameterType.

public TypeConverter TypeConverter { get; }

Property Value

TypeConverter