Skip to content
Advertisement

How to set minimum and maximum length of a string argument?

I have this so far:

JavaScript

But it gives me this error:

JavaScript

How do I make it so that the min and max length of the username argument is 3 and 22.

Advertisement

Answer

I was able to accomplish this by using app_commands.Range.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement