ModalParameterResolver
Resolver for parameters annotated with @ModalInput.
Needs to be implemented alongside a ParameterResolver subclass.
Types supported by default
Note: For null to be supported, the parameter must be explicitly nullable.
TextInput
String(can be empty, supportsnullwhen empty)
StringSelectMenu
Stringwhen a single value can be selected (supportsnullwhen none selected)List<String>(can be empty)
EntitySelectMenu
T(supportsnullwhen none selected)List<T>(can be empty)
Where T is one of: IMentionable, Role, User, InputUser, Member, GuildChannel
AttachmentUpload
Listof Message.Attachment (can be empty)Message.Attachment (supports
nullwhen none selected)
RadioGroup
String(supportsnullwhen none selected)
CheckboxGroup
List<String>(can be empty)Stringwhen a single value can be selected (supportsnullwhen none selected)
Checkbox
(primitive)
Boolean
Parameters
Type of the implementation
Type of the returned resolved objects
Functions
Returns a resolved object for this ModalMapping.
Returns a resolved object for this ModalMapping.