[Slash Commands] String length requirement #4054
Replies: 2 comments 4 replies
-
For me it sounds like just extra pain. The way it is now is fine. It's not that hard to add single if statement in your code :) |
Beta Was this translation helpful? Give feedback.
-
I also think this would be a great idea. Sure, you could add a single if statement to validate the option's value after the user sends it, but like @RedDaedalus said, it's objectively better UX to have client-side validation. The end user will have to run the command again with the appropriate value, which will be more frustrating and is objectively a lesser user experience than having it do a client-side validation. (Sorry for commenting the same thing a few times - I wasn't sure if I should reply or put this by itself. First time using Discussions) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi so I'm bad at explaining things
I was thinking maybe there would be a
min_length
andmax_length
for the strings if for example you are making an application bot with slash commands and want to have a question require at least 5 characters but under 50 for example. Thoughts?Beta Was this translation helpful? Give feedback.
All reactions