Modal Validation & Modal Close Event #6156
Unanswered
justamood
asked this question in
API Feature Requests & Ideas
Replies: 1 comment 2 replies
-
An event for if the User dismisses/closes a Modal without submitting has already been rejected by Discord due to how unreliable it would be to detect that. EG: User power outages, user internet outages, Discord outages, forcibly closing the Discord client, etc. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the only way to validate the value of a modal text input is by setting minimum and maximum character limits. This limited validation capability has discouraged me from using modals. However, I suggest that additional validation options, similar to those used in slash commands, be added. This would allow for fields to be restricted to certain data types, such as numbers, booleans, integers, and more. For instance, boolean inputs could be represented using checkboxes, while choice inputs could be represented using dropdown menus.
In addition, it would be useful to have a way to let the bot know when a modal has been dismissed. It would be much better than waiting for a response for a certain period of time.
Beta Was this translation helpful? Give feedback.
All reactions