SlashCommandStringOption

No summary provided.
declare class SlashCommandStringOption extends ApplicationCommandOptionBase 
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
maxnumberNoThe maximum length this option can be

setMinLength(min)

:

this

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

setRequired(required)

:

this

Marks the option as required
NameTypeOptionalDescription
requiredbooleanNoIf this option should be required
Inherited from ApplicationCommandOptionBase