ODTextCommandBuilderStringOption interface
under construction
We are still working the API Reference! This page might be incomplete or doesn't contain all details!
Overview
The string option builder for text commands.
Properties
optional allowSpaces boolean ➜ boolean
When this is the last option, allow this string to contain spaces
optional choices array ➜ string[]
The string needs to match one of these choices or it will be invalid
optional maxLength number ➜ number
Set the maximum length of this string
optional minLength number ➜ number
Set the minimum length of this string
inherited name string ➜ string
The name of this option
optional regex type ➜ RegExp
The string needs to match this regex or it will be invalid
inherited optional required boolean ➜ boolean
Is this option required? (optional options can only exist at the end of the command!)
type type ➜ "string"
The type of this option