CreateSubcommandGroup
Defined in: packages/builders/src/commands.ts:427
Builds a nested subcommand group.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new CreateSubcommandGroup():
CreateSubcommandGroup
Defined in: packages/builders/src/commands.ts:429
Creates a subcommand group.
Returns
Section titled “Returns”CreateSubcommandGroup
Overrides
Section titled “Overrides”CreateCommandOption.constructor
Methods
Section titled “Methods”addSubcommand()
Section titled “addSubcommand()”addSubcommand(
configure):this
Defined in: packages/builders/src/commands.ts:433
Adds a subcommand to this group.
Parameters
Section titled “Parameters”configure
Section titled “configure”(option) => CreateSubcommand
Returns
Section titled “Returns”this
setAutocomplete()
Section titled “setAutocomplete()”setAutocomplete(
enabled?):this
Defined in: packages/builders/src/commands.ts:179
Sets autocomplete; options with choices cannot use it.
Parameters
Section titled “Parameters”enabled?
Section titled “enabled?”boolean = true
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”CreateCommandOption.setAutocomplete
setDescription()
Section titled “setDescription()”setDescription(
description):this
Defined in: packages/builders/src/commands.ts:168
Sets the option description.
Parameters
Section titled “Parameters”description
Section titled “description”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”CreateCommandOption.setDescription
setName()
Section titled “setName()”setName(
name):this
Defined in: packages/builders/src/commands.ts:162
Sets the option name.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”setRequired()
Section titled “setRequired()”setRequired(
required?):this
Defined in: packages/builders/src/commands.ts:174
Makes the option required or optional.
Parameters
Section titled “Parameters”required?
Section titled “required?”boolean = true
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”CreateCommandOption.setRequired
toJSON()
Section titled “toJSON()”toJSON():
Record<string,unknown>
Defined in: packages/builders/src/commands.ts:190
Serializes the option payload.
Returns
Section titled “Returns”Record<string, unknown>