#Input validation in modals

1 messages · Page 1 of 1 (latest)

formal tartan
#

Heya, is it possible to validate user input (either client or server side) and show more appropriate errors to the user than just a generic one like shown in the screenshot?

knotty root
#

I think the only thing you can do is min length and max length, anything else I think you would have to validate your input server side and do a followup to the user. (Like close that modal and make a response to them)

crude lion
#

TextInputComponents are merely that: text inputs. Discord neither D#+ supports parsing information out of them, however.

#

Kuylar's library might, however?

#

(Modal commands)

formal tartan
#

Ah that’s sad