Search Results for

    Show / Hide Table of Contents

    Class SlashCommandParameterInfo

    Represents the parameter info class for SlashCommandInfo commands.

    Inheritance
    Object
    CommandParameterInfo
    SlashCommandParameterInfo
    Implements
    IParameterInfo
    Inherited Members
    CommandParameterInfo.Name
    CommandParameterInfo.ParameterType
    CommandParameterInfo.IsRequired
    CommandParameterInfo.IsParameterArray
    CommandParameterInfo.DefaultValue
    CommandParameterInfo.Attributes
    CommandParameterInfo.Preconditions
    CommandParameterInfo.CheckPreconditionsAsync(IInteractionContext, Object, IServiceProvider)
    Namespace: Discord.Interactions
    Assembly: Discord.Net.Interactions.dll
    Syntax
    public class SlashCommandParameterInfo : CommandParameterInfo, IParameterInfo

    Properties

    | Improve this Doc View Source

    AutocompleteHandler

    Gets the IAutocompleteHandler thats linked to this parameter.

    Declaration
    public IAutocompleteHandler AutocompleteHandler { get; }
    Property Value
    Type Description
    IAutocompleteHandler
    | Improve this Doc View Source

    ChannelTypes

    Gets the allowed channel types for this option.

    Declaration
    public IReadOnlyCollection<ChannelType> ChannelTypes { get; }
    Property Value
    Type Description
    IReadOnlyCollection<ChannelType>
    | Improve this Doc View Source

    Choices

    Gets the parameter choices of this Slash Application Command parameter.

    Declaration
    public IReadOnlyCollection<ParameterChoice> Choices { get; }
    Property Value
    Type Description
    IReadOnlyCollection<ParameterChoice>
    | Improve this Doc View Source

    Command

    Declaration
    public SlashCommandInfo Command { get; }
    Property Value
    Type Description
    SlashCommandInfo
    | Improve this Doc View Source

    ComplexParameterFields

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

    Declaration
    public IReadOnlyCollection<SlashCommandParameterInfo> ComplexParameterFields { get; }
    Property Value
    Type Description
    IReadOnlyCollection<SlashCommandParameterInfo>
    | Improve this Doc View Source

    Description

    Gets the description of the Slash Command Parameter.

    Declaration
    public string Description { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    IsAutocomplete

    Gets whether this parameter is configured for Autocomplete Interactions.

    Declaration
    public bool IsAutocomplete { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    IsComplexParameter

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

    Declaration
    public bool IsComplexParameter { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    MaxLength

    Gets the maximum length allowed for a string type parameter.

    Declaration
    public int? MaxLength { get; }
    Property Value
    Type Description
    Nullable<Int32>
    | Improve this Doc View Source

    MaxValue

    Gets the maxmimum value permitted for a number type parameter.

    Declaration
    public double? MaxValue { get; }
    Property Value
    Type Description
    Nullable<Double>
    | Improve this Doc View Source

    MinLength

    Gets the minimum length allowed for a string type parameter.

    Declaration
    public int? MinLength { get; }
    Property Value
    Type Description
    Nullable<Int32>
    | Improve this Doc View Source

    MinValue

    Gets the minimum value permitted for a number type parameter.

    Declaration
    public double? MinValue { get; }
    Property Value
    Type Description
    Nullable<Double>
    | Improve this Doc View Source

    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

    Implements

    IParameterInfo

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.7.2