SlashCommandStringOption

No summary provided.
declare class SlashCommandStringOption extends ApplicationCommandOptionBase 
Readonly
Optional

max_length?

:

number

Readonly
Optional

min_length?

:

number

Readonly

required

:

boolean

Protected

runRequiredValidations()

:

void

setMaxLength(max)

:

this

Sets the maximum length of this string option.
NameTypeOptionalDescription
maxnumberNo
The maximum length this option can be

setMinLength(min)

:

this

Sets the minimum length of this string option.
NameTypeOptionalDescription
minnumberNo
The minimum length this option can be

setRequired(required)

:

this

Marks the option as required
NameTypeOptionalDescription
requiredbooleanNo
If this option should be required