Length

annotation class Length(val min: Int = 1, val max: Int = OptionData.MAX_STRING_OPTION_LENGTH)(source)

Sets the minimum and maximum string length on the specified @SlashOption.

Note: This is only for string types!

See also

Properties

Link copied to clipboard
val max: Int

The maximum value of this parameter (included)

Link copied to clipboard
val min: Int = 1

The minimum value of this parameter (included)