Browse Source

Update docs/guides/int_framework/intro.md

pull/2160/head
Quin Lynch GitHub 3 years ago
parent
commit
2d111265f7
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

@@ -145,7 +145,7 @@ You can specify the permitted max/min value for a number type parameter using th

#### Complex Parameters

This allows users to create slash command options using an object's constructor. Also allowing complex objects to be created which cannot be infered from only one input value.
This allows users to create slash command options using an object's constructor allowing complex objects to be created which cannot be infered from only one input value.
Constructor methods support every attribute type that can be used with the regular slash commands ([Autocomplete], [Summary] etc. ).
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.


Loading…
Cancel
Save