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
ChannelTypes
Gets the allowed channel types for this option.
public IReadOnlyCollection<ChannelType> ChannelTypes { get; }
Property Value
Choices
Gets the parameter choices of this Slash Application Command parameter.
public IReadOnlyCollection<ParameterChoice> Choices { get; }
Property Value
Command
public SlashCommandInfo Command { get; }
Property Value
ComplexParameterFields
Gets the constructor parameters of this parameter, if IsComplexParameter is true.
public IReadOnlyCollection<SlashCommandParameterInfo> ComplexParameterFields { get; }
Property Value
Description
Gets the description of the Slash Command Parameter.
public string Description { get; }
Property Value
DiscordOptionType
Gets the Discord option type this parameter represents. If the parameter is not a complex parameter.
public ApplicationCommandOptionType? DiscordOptionType { get; }
Property Value
IsAutocomplete
Gets whether this parameter is configured for Autocomplete Interactions.
public bool IsAutocomplete { get; }
Property Value
IsComplexParameter
Gets whether this type should be treated as a complex parameter.
public bool IsComplexParameter { get; }
Property Value
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
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
TypeConverter
Gets the TypeConverter<T> that will be used to convert the incoming IDiscordInteractionData into ParameterType.
public TypeConverter TypeConverter { get; }