Class SlashCommandParameterInfo
Represents the parameter info class for SlashCommandInfo commands.
Implements
Inherited Members
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class SlashCommandParameterInfo : CommandParameterInfo, IParameterInfo
Properties
| Improve this Doc View SourceAutocompleteHandler
Gets the IAutocompleteHandler that's linked to this parameter.
Declaration
public IAutocompleteHandler AutocompleteHandler { get; }
Property Value
Type | Description |
---|---|
IAutocompleteHandler |
ChannelTypes
Gets the allowed channel types for this option.
Declaration
public IReadOnlyCollection<ChannelType> ChannelTypes { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<ChannelType> |
Choices
Gets the parameter choices of this Slash Application Command parameter.
Declaration
public IReadOnlyCollection<ParameterChoice> Choices { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<ParameterChoice> |
Command
Declaration
public SlashCommandInfo Command { get; }
Property Value
Type | Description |
---|---|
SlashCommandInfo |
ComplexParameterFields
Gets the constructor parameters of this parameter, if IsComplexParameter is true.
Declaration
public IReadOnlyCollection<SlashCommandParameterInfo> ComplexParameterFields { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<SlashCommandParameterInfo> |
Description
Gets the description of the Slash Command Parameter.
Declaration
public string Description { get; }
Property Value
Type | Description |
---|---|
String |
DiscordOptionType
Gets the Discord option type this parameter represents. If the parameter is not a complex parameter.
Declaration
public ApplicationCommandOptionType? DiscordOptionType { get; }
Property Value
Type | Description |
---|---|
Nullable<ApplicationCommandOptionType> |
IsAutocomplete
Gets whether this parameter is configured for Autocomplete Interactions.
Declaration
public bool IsAutocomplete { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsComplexParameter
Gets whether this type should be treated as a complex parameter.
Declaration
public bool IsComplexParameter { get; }
Property Value
Type | Description |
---|---|
Boolean |
MaxLength
Gets the maximum length allowed for a string type parameter.
Declaration
public int? MaxLength { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
MaxValue
Gets the maximum value permitted for a number type parameter.
Declaration
public double? MaxValue { get; }
Property Value
Type | Description |
---|---|
Nullable<Double> |
MinLength
Gets the minimum length allowed for a string type parameter.
Declaration
public int? MinLength { get; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
MinValue
Gets the minimum value permitted for a number type parameter.
Declaration
public double? MinValue { get; }
Property Value
Type | Description |
---|---|
Nullable<Double> |
TypeConverter
Gets the TypeConverter<T> that will be used to convert the incoming SocketSlashCommandDataOption into ParameterType.
Declaration
public TypeConverter TypeConverter { get; }
Property Value
Type | Description |
---|---|
TypeConverter |