You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BotCommands-core/src/main/kotlin/io/github/freya022/botcommands/api/parameters/resolvers/ModalParameterResolver.kt
+29-7Lines changed: 29 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -24,14 +24,36 @@ import kotlin.reflect.KType
24
24
* Needs to be implemented alongside a [ParameterResolver] subclass.
25
25
*
26
26
* ### Types supported by default
27
-
* - [TextInput] : `String`, when not filled by the user, empty or `null` if the parameter is explicitly nullable
28
-
* - [StringSelectMenu] : `String` (can be `null`), `List<String>` (can be empty)
29
-
* - [EntitySelectMenu] : [Mentions], `T` (can be `null`) and `List<T>` (can be empty) where `T` is one of:
27
+
* **Note:** For `null` to be supported, the parameter must be explicitly nullable.
28
+
*
29
+
* #### [TextInput]
30
+
* - `String` (can be empty, supports `null` when empty)
31
+
*
32
+
* #### [StringSelectMenu]
33
+
* - `String` when a single value can be selected (supports `null` when none selected)
0 commit comments