# SlashCommandSubcommandGroupBuilder

Defined in: [sdk/js/src/builders/command.ts:98](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L98)

Type 2 option: a group of sub-commands.

## Extends

- `Named`

## Constructors

### Constructor

> **new SlashCommandSubcommandGroupBuilder**(): `SlashCommandSubcommandGroupBuilder`

#### Returns

`SlashCommandSubcommandGroupBuilder`

#### Inherited from

`Named.constructor`

## Properties

### description

> **description**: `string` = `''`

Defined in: [sdk/js/src/builders/command.ts:27](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L27)

#### Inherited from

`Named.description`

***

### descriptionLocalizations?

> `optional` **descriptionLocalizations?**: `Record`\<`string`, `string`\>

Defined in: [sdk/js/src/builders/command.ts:29](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L29)

#### Inherited from

`Named.descriptionLocalizations`

***

### name

> **name**: `string` = `''`

Defined in: [sdk/js/src/builders/command.ts:26](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L26)

#### Inherited from

`Named.name`

***

### nameLocalizations?

> `optional` **nameLocalizations?**: `Record`\<`string`, `string`\>

Defined in: [sdk/js/src/builders/command.ts:28](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L28)

#### Inherited from

`Named.nameLocalizations`

***

### subcommands

> `readonly` **subcommands**: [`SlashCommandSubcommandBuilder`](/docs/reference/js/zaun-bot/classes/slashcommandsubcommandbuilder/)[] = `[]`

Defined in: [sdk/js/src/builders/command.ts:99](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L99)

## Methods

### addSubcommand()

> **addSubcommand**(`f`): `this`

Defined in: [sdk/js/src/builders/command.ts:100](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L100)

#### Parameters

##### f

(`s`) => [`SlashCommandSubcommandBuilder`](/docs/reference/js/zaun-bot/classes/slashcommandsubcommandbuilder/)

#### Returns

`this`

***

### setDescription()

> **setDescription**(`description`): `this`

Defined in: [sdk/js/src/builders/command.ts:35](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L35)

#### Parameters

##### description

`string`

#### Returns

`this`

#### Inherited from

`Named.setDescription`

***

### setDescriptionLocalizations()

> **setDescriptionLocalizations**(`map`): `this`

Defined in: [sdk/js/src/builders/command.ts:43](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L43)

#### Parameters

##### map

`Record`\<`string`, `string`\>

#### Returns

`this`

#### Inherited from

`Named.setDescriptionLocalizations`

***

### setName()

> **setName**(`name`): `this`

Defined in: [sdk/js/src/builders/command.ts:31](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L31)

#### Parameters

##### name

`string`

#### Returns

`this`

#### Inherited from

`Named.setName`

***

### setNameLocalizations()

> **setNameLocalizations**(`map`): `this`

Defined in: [sdk/js/src/builders/command.ts:39](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L39)

#### Parameters

##### map

`Record`\<`string`, `string`\>

#### Returns

`this`

#### Inherited from

`Named.setNameLocalizations`

***

### toWit()

> **toWit**(): `SubCommandGroup`

Defined in: [sdk/js/src/builders/command.ts:104](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/command.ts#L104)

#### Returns

`SubCommandGroup`
