Browse Source

Resolve complex param sample reference (#2166)

tags/3.4.1
Armano den Boef GitHub 3 years ago
parent
commit
7262990654
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/guides/int_framework/intro.md

+ 1
- 1
docs/guides/int_framework/intro.md View File

@@ -150,7 +150,7 @@ Constructor methods support every attribute type that can be used with the regul
Preferred constructor of a Type can be specified either by passing a `Type[]` to the `[ComplexParameterAttribute]` or tagging a type constructor with the `[ComplexParameterCtorAttribute]`. If nothing is specified, the InteractionService defaults to the only public constructor of the type.
TypeConverter pattern is used to parse the constructor methods objects.

[!code-csharp[Complex Parameter](samples/intro/usercommand.cs)]
[!code-csharp[Complex Parameter](samples/intro/complexparams.cs)]

Interaction service complex parameter constructors are prioritized in the following order:



Loading…
Cancel
Save