SlashCommandSubcommandBuilder
Defined in: sdk/js/src/builders/command.ts:91
Type 1 option: a sub-command.
Extends
Section titled “Extends”WithOptions
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SlashCommandSubcommandBuilder():
SlashCommandSubcommandBuilder
Returns
Section titled “Returns”SlashCommandSubcommandBuilder
Inherited from
Section titled “Inherited from”WithOptions.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”WithOptions.description
descriptionLocalizations?
Section titled “descriptionLocalizations?”
optionaldescriptionLocalizations?:Record<string,string>
Defined in: sdk/js/src/builders/command.ts:29
Inherited from
Section titled “Inherited from”WithOptions.descriptionLocalizations
name:
string=''
Defined in: sdk/js/src/builders/command.ts:26
Inherited from
Section titled “Inherited from”WithOptions.name
nameLocalizations?
Section titled “nameLocalizations?”
optionalnameLocalizations?:Record<string,string>
Defined in: sdk/js/src/builders/command.ts:28
Inherited from
Section titled “Inherited from”WithOptions.nameLocalizations
options
Section titled “options”
readonlyoptions:OptionBuilder[] =[]
Defined in: sdk/js/src/builders/command.ts:63
Inherited from
Section titled “Inherited from”WithOptions.options
Methods
Section titled “Methods”addAttachmentOption()
Section titled “addAttachmentOption()”addAttachmentOption(
f):this
Defined in: sdk/js/src/builders/command.ts:78
Parameters
Section titled “Parameters”OptionFn
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”WithOptions.addAttachmentOption
addBooleanOption()
Section titled “addBooleanOption()”addBooleanOption(
f):this
Defined in: sdk/js/src/builders/command.ts:72
Parameters
Section titled “Parameters”OptionFn
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”WithOptions.addBooleanOption
addChannelOption()
Section titled “addChannelOption()”addChannelOption(
f):this
Defined in: sdk/js/src/builders/command.ts:74
Parameters
Section titled “Parameters”OptionFn
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”WithOptions.addChannelOption
addIntegerOption()
Section titled “addIntegerOption()”addIntegerOption(
f):this
Defined in: sdk/js/src/builders/command.ts:71
Parameters
Section titled “Parameters”OptionFn
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”WithOptions.addIntegerOption
addMentionableOption()
Section titled “addMentionableOption()”addMentionableOption(
f):this
Defined in: sdk/js/src/builders/command.ts:76
Parameters
Section titled “Parameters”OptionFn
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”WithOptions.addMentionableOption
addNumberOption()
Section titled “addNumberOption()”addNumberOption(
f):this
Defined in: sdk/js/src/builders/command.ts:77
Parameters
Section titled “Parameters”OptionFn
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”WithOptions.addNumberOption
addRoleOption()
Section titled “addRoleOption()”addRoleOption(
f):this
Defined in: sdk/js/src/builders/command.ts:75
Parameters
Section titled “Parameters”OptionFn
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”WithOptions.addRoleOption
addStringOption()
Section titled “addStringOption()”addStringOption(
f):this
Defined in: sdk/js/src/builders/command.ts:70
Parameters
Section titled “Parameters”OptionFn
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”WithOptions.addStringOption
addUserOption()
Section titled “addUserOption()”addUserOption(
f):this
Defined in: sdk/js/src/builders/command.ts:73
Parameters
Section titled “Parameters”OptionFn
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”WithOptions.addUserOption
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”WithOptions.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”WithOptions.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”WithOptions.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”WithOptions.setNameLocalizations
toWit()
Section titled “toWit()”toWit():
SubCommand
Defined in: sdk/js/src/builders/command.ts:92
Returns
Section titled “Returns”SubCommand