SlashCommandStringOption
No summary provided.
declare class SlashCommandStringOption extends ApplicationCommandOptionBase
declare class SlashCommandStringOption extends ApplicationCommandOptionBase
Extends
ApplicationCommandOptionBaseReadonly
Optional
max_length?
:
number
Readonly
Optional
min_length?
:
number
Readonly
required
:
boolean
Inherited from ApplicationCommandOptionBase
Readonly
Protected
runRequiredValidations()
:
void
setMaxLength(max)
:
this
Sets the maximum length of this string option.
Name | Type | Optional | Description |
---|---|---|---|
max | number | No | The maximum length this option can be |
setMinLength(min)
:
this
Sets the minimum length of this string option.
Name | Type | Optional | Description |
---|---|---|---|
min | number | No | The minimum length this option can be |
setRequired(required)
:
this
Marks the option as required
Inherited from ApplicationCommandOptionBase
Name | Type | Optional | Description |
---|---|---|---|
required | boolean | No | If this option should be required |