Commit e8c5436
authored
[Feature] Modal Select Components Support for IF (#3189)
* add interaction service attributes new modal input types
* add new modal component type converters
* relocate hide attribute outside of slash command enum converter for general purpose use
* refactor base inputcomponentbuilder types to use modal component typeconverters
* add builders for new modal input types
* add component insertion methods to modal builder for new input types
* refactor base inputcomponentinfo class to use modal component typeconverters
* add component info classes for newly added modal input types
* add build logic for new modal input metadata classes
* add componet collection properties for new modal input types to modalinfo
* implement convertion logic for new modal inputs to the respond with modal extension methods
* implement modal input typeconverters into interaction service
* add read logic to enum modal component typeconverter
* add default entity modal component typeconverter
* add write logic to default value modal component typeconverter
* add write logic to the nullable modal component typeconverter
* add description property to input label attribute
* add inline docs to modal attributes
* add modal file upload attribute
* add inline docs to input component infos
* add description property to input component builder
* add inline docs to modal component builders
* add modal file upload component info
* add modal file upload component builder
* rename select input attribute
* refactor select input attribute and add description property in moduleClassBuilder
* add inline docs to modalBuilder
* add description to inputComponentInfo
* file-scope namespace for commandBuilder and modal interfaces
* update respondWithModal logic to include new components
* add inline docs and file upload component to modalInfo
* add attachment modal typeconverter
* create base non-input modal component entities
* update modal component typeconverter namespaces and remove unused
* add default min/max values to select input attribute
* create text display builder and info classes
* add text display parsing logic
* add text display attribute
* add modal select menu option attribute
* add docs to text display component info
* fix text display parsing
* add isRequired mapping to select menus
* revert to block-scope to clear diff false-positives
* fix inline doc annotations
* fix build errors
* add interaction parameter to modal component typeconverter write method
* add null check to select menu option attribute
* add null check to default value modalTypeConverter write method
* make ctors of modal component base attributes internal
* implement predicate to hide attribute and enum modalcomponent typeconverter
* fix HideAttribute inline docs build errors
* simplify naming of the component classes and normalize namespaces
* fix build errors in module class builder
* add inline docs to modalComponentTypeConverter TryGetModalInteractionData
* add min/max values parameters to ModalChannelSelectAttribute
* fix defaultArrayModalTypeConverter chanell type write logic
* simplify addDefaultValue methods for channe, mentionable, role, and user selects
* add emoji support to select menu options
* add instance value parsing to enum modalComponentConverter1 parent 06510e1 commit e8c5436
File tree
52 files changed
+2321
-327
lines changed- src/Discord.Net.Interactions
- Attributes
- Modals
- Builders
- Modals
- Components
- Inputs
- Extensions
- Info
- Components
- InputComponents
- TypeConverters
- ModalComponents
- SlashCommands
- TypeReaders
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
52 files changed
+2321
-327
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
20 | | - | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
| 29 | + | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
25 | | - | |
| 20 | + | |
26 | 21 | | |
27 | 22 | | |
28 | 23 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments