Maximum character limit for entire Modal #5209
Unanswered
MaksiRose
asked this question in
API Feature Requests & Ideas
Replies: 0 comments
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.
-
I would like to see the possibility of a limit of how many characters you can type not just in individual text input components, but the entire modal. So, let's say, you have two text inputs, and their combined text should not exceed 16 characters. But you could for example put 16 characters in one text box and 0 in the other, or make it 9 to 7, or some other combination.
This can be useful when the different text boxes will later be combined in some way, and should follow a certain maximum length, but individually they could be longer if another text box is shorter to make up for it.
Example: Let's say you have a modal that lets you create an embed, one is for the embed description, the other are for four embed fields.
If you give these their maximum allowed character lengths as per the docs, they wouldn't individually be wrong, but together they might exceed the maximum limit of 6000 characters for all embeds in a message.
Of course you could get around this, but it would mean the user has submitted first and only get notified afterwards that their character length is too long, which must be frustrating and confusing when the modal text inputs themselves also have character limits and you are in the limits of those. It would be much more user-facing to have a global character limit for the entire modal in this case.
Beta Was this translation helpful? Give feedback.
All reactions