💻
Welcome
  • OVERVIEW
    • Introduction
  • DOCUMENTATION
    • CLASSES
      • ApplicationCommand
      • ApplicationCommandManager
      • ApplicationCommandBuilder
      • AttachmentOptionBuilder
      • BooleanOptionBuilder
      • ChannelOptionBuilder
      • IntegerOptionBuilder
      • MentionableOptionBuilder
      • NumberOptionBuilder
      • RoleOptionBuilder
      • StringOptionBuilder
      • SubcommandOptionBuilder
      • SubcommandGroupOptionBuilder
      • UserOptionBuilder
      • BaseOptionBuilder
      • ChoiceBuilder
      • Base
    • TYPEDEFS
      • Permissions
      • ApplicationCommandOptionTypes
      • ChannelTypes
      • ApplicationCommandTypes
      • ApplicationCommandOptionChoiceData
      • ApplicationCommandOptionData
      • ApplicationCommandData
      • RawApplicationCommandOptionChoiceData
      • RawApplicationCommandOptionData
      • RawApplicationCommandData
      • ApplicationCommandEditData
      • Snowflake
Powered by GitBook
On this page
  • Constructor
  • Properties
  • .name
  • .description
  • .type
  • .name_localizations
  • .description_localizations
  • Methods
  • .setName(name)
  • .setDescription(description)
  • .setNameLocalizations(localizations)
  • .setDescriptionLocalizations(localizations)
  • .toJSON()
  1. DOCUMENTATION
  2. CLASSES

BaseOptionBuilder

extends Base

Constructor

PARAMETER
TYPE
OPTIONAL
DESCRIPTION

type

ApplicationCommandOptionTypes

none

Type option type

Properties

.name

The option name

Type: string | null

.description

The option description

Type: string | null

.type

The option type

Type: number

.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

PARAMETER
TYPE
OPTIONAL
DESCRIPTION

name

string

none

The option name

Returns: BaseOption

.setDescription(description)

Set the option description

PARAMETER
TYPE
OPTIONAL
DESCRIPTION

description

string

none

The option description

Returns: BaseOption

.setNameLocalizations(localizations)

Set the option name localizations

PARAMETER
TYPE
OPTIONAL
DESCRIPTION

localizations

s{ [locale: string]: string }

none

The option name localizations

Returns: BaseOption

.setDescriptionLocalizations(localizations)

Set the option description localizations

PARAMETER
TYPE
OPTIONAL
DESCRIPTION

localizations

{ [locale: string]: string }

none

The option description localizations

Returns: BaseOption

.toJSON()

Returns the properties of the class in the object type.

Returns: { [property: string]: any }

PreviousUserOptionBuilderNextChoiceBuilder

Last updated 3 years ago