UserOptionBuilder
extends BaseOptionBuilder
Properties
.name
The option name
Type: string | null
.description
The option description
Type: string | null
.type
The option type
Type: number
.required
The option required
Type: boolean
.name_localizations
The option name localizations
Type: { [locale: string]: string }
.description_localizations
The option description localizations
Type: { [locale: string]: string }
Methods
.setName(name)
Set the option name
name
string
none
The option name
Returns: UserOptionBuilder
.setDescription(description)
Set the option description
description
string
none
The option description
Returns: UserOptionBuilder
.setRequired(required)
Set the option required
required
boolean
none
The option required
Returns: UserOptionBuilder
.setNameLocalizations(localizations)
Set the option name localizations
localizations
s{ [locale: string]: string }
none
The option name localizations
Returns: UserOptionBuilder
.setDescriptionLocalizations(localizations)
Set the option description localizations
localizations
{ [locale: string]: string }
none
The option description localizations
Returns: UserOptionBuilder
.toJSON()
Returns the properties of the class in the object type.
Returns: { [property: string]: any }
Last updated