Table of Contents

Class ComplexParameterAttribute

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

Registers a parameter as a complex parameter.

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class ComplexParameterAttribute : Attribute
Inheritance
ComplexParameterAttribute
Inherited Members

Constructors

ComplexParameterAttribute()

Registers a slash command parameter as a complex parameter.

public ComplexParameterAttribute()

ComplexParameterAttribute(Type[])

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

public ComplexParameterAttribute(Type[] types)

Parameters

types Type[]

Type array of the preferred constructor parameters.

Properties

PrioritizedCtorSignature

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

public Type[] PrioritizedCtorSignature { get; }

Property Value

Type[]