Class ComplexParameterAttribute
Registers a parameter as a complex parameter.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class ComplexParameterAttribute : Attribute
Constructors
| Improve this Doc View SourceComplexParameterAttribute()
Registers a slash command parameter as a complex parameter.
Declaration
public ComplexParameterAttribute()
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 SourcePrioritizedCtorSignature
Gets the parameter array of the constructor method that should be prioritized.
Declaration
public Type[] PrioritizedCtorSignature { get; }
Property Value
Type | Description |
---|---|
Type[] |