Search...

SlashCommandStringOption

declare class SlashCommandStringOption extends ApplicationCommandOptionBase 
declare class SlashCommandStringOption extends ApplicationCommandOptionBase 

No summary provided.

Extends

ApplicationCommandOptionBase
Readonly
Optional

max_length?

:

number

Readonly
Optional

min_length?

:

number

Readonly

type

:

ApplicationCommandOptionType.String

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

toJSON()

:

APIApplicationCommandStringOption