SlashCommandSubcommandGroupBuilder
Defined in: sdk/js/src/builders/command.ts:98
Type 2 option: a group of sub-commands.
Extends
Section titled “Extends”Named
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SlashCommandSubcommandGroupBuilder():
SlashCommandSubcommandGroupBuilder
Returns
Section titled “Returns”SlashCommandSubcommandGroupBuilder
Inherited from
Section titled “Inherited from”Named.constructor
Properties
Section titled “Properties”description
Section titled “description”description:
string=''
Defined in: sdk/js/src/builders/command.ts:27
Inherited from
Section titled “Inherited from”Named.description
descriptionLocalizations?
Section titled “descriptionLocalizations?”
optionaldescriptionLocalizations?:Record<string,string>
Defined in: sdk/js/src/builders/command.ts:29
Inherited from
Section titled “Inherited from”Named.descriptionLocalizations
name:
string=''
Defined in: sdk/js/src/builders/command.ts:26
Inherited from
Section titled “Inherited from”Named.name
nameLocalizations?
Section titled “nameLocalizations?”
optionalnameLocalizations?:Record<string,string>
Defined in: sdk/js/src/builders/command.ts:28
Inherited from
Section titled “Inherited from”Named.nameLocalizations
subcommands
Section titled “subcommands”
readonlysubcommands:SlashCommandSubcommandBuilder[] =[]
Defined in: sdk/js/src/builders/command.ts:99
Methods
Section titled “Methods”addSubcommand()
Section titled “addSubcommand()”addSubcommand(
f):this
Defined in: sdk/js/src/builders/command.ts:100
Parameters
Section titled “Parameters”(s) => SlashCommandSubcommandBuilder
Returns
Section titled “Returns”this
setDescription()
Section titled “setDescription()”setDescription(
description):this
Defined in: sdk/js/src/builders/command.ts:35
Parameters
Section titled “Parameters”description
Section titled “description”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”Named.setDescription
setDescriptionLocalizations()
Section titled “setDescriptionLocalizations()”setDescriptionLocalizations(
map):this
Defined in: sdk/js/src/builders/command.ts:43
Parameters
Section titled “Parameters”Record<string, string>
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”Named.setDescriptionLocalizations
setName()
Section titled “setName()”setName(
name):this
Defined in: sdk/js/src/builders/command.ts:31
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”Named.setName
setNameLocalizations()
Section titled “setNameLocalizations()”setNameLocalizations(
map):this
Defined in: sdk/js/src/builders/command.ts:39
Parameters
Section titled “Parameters”Record<string, string>
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”Named.setNameLocalizations
toWit()
Section titled “toWit()”toWit():
SubCommandGroup
Defined in: sdk/js/src/builders/command.ts:104
Returns
Section titled “Returns”SubCommandGroup