Search Results for

    Show / Hide Table of Contents

    Class ComplexParameterAttribute

    Registers a parameter as a complex parameter.

    Inheritance
    Object
    ComplexParameterAttribute
    Namespace: Discord.Interactions
    Assembly: Discord.Net.Interactions.dll
    Syntax
    public class ComplexParameterAttribute : Attribute

    Constructors

    | Improve this Doc View Source

    ComplexParameterAttribute()

    Registers a slash command parameter as a complex parameter.

    Declaration
    public ComplexParameterAttribute()
    | Improve this Doc View Source

    ComplexParameterAttribute(Type[])

    Registers a slash command parameter as a complex parameter with a specified constructor signature.

    Declaration
    public ComplexParameterAttribute(Type[] types)
    Parameters
    Type Name Description
    Type[] types

    Type array of the preferred constructor parameters.

    Properties

    | Improve this Doc View Source

    PrioritizedCtorSignature

    Gets the parameter array of the constructor method that should be prioritized.

    Declaration
    public Type[] PrioritizedCtorSignature { get; }
    Property Value
    Type Description
    Type[]

    Theme

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