-
-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support SelectMenu in Modal #2161
Comments
Did you manage to send a Modal that contains a |
Select menus aren't officially supported by Discord, once it's documentation is published JDA will implement it |
Are you still experiencing the issue? Therefore, I solved this by modifying the process to reply to the interaction with event.reply().addActionRow() upon submitting the modal through onModalInteraction. I added a Button to addActionRow() and used the button interaction to generate a StringSelectMenu. Additionally, if multiple threads access and modify objects during the process, you might want to add measures to handle this. |
Modals can have only TextInput's. This issue and related PR exist because discord enabled selects in modals by accident |
General Troubleshooting
Expected Behaviour
TextInput and Modal are added in alpha 11,
now Discord API also allows SelectMenu to be used in Modal.
However, JDA failed to parse data when SelectMenu is used in Modal.
The exception is throwed outside the
onModalInteraction(ModalInteractionEvent event)
methodException or Error
The text was updated successfully, but these errors were encountered: