# ContextMenuCommandBuilder

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

A user or message context-menu command.

## Implements

- [`CommandLike`](/docs/reference/js/zaun-bot/interfaces/commandlike/)

## Constructors

### Constructor

> **new ContextMenuCommandBuilder**(): `ContextMenuCommandBuilder`

#### Returns

`ContextMenuCommandBuilder`

## Properties

### name

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

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

#### Implementation of

[`CommandLike`](/docs/reference/js/zaun-bot/interfaces/commandlike/).[`name`](/docs/reference/js/zaun-bot/interfaces/commandlike/#name)

## Methods

### setDefaultMemberPermissions()

> **setDefaultMemberPermissions**(`bits`): `this`

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

#### Parameters

##### bits

`number` \| `bigint`

#### Returns

`this`

***

### setName()

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

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

1–32 characters; spaces and capitals allowed.

#### Parameters

##### name

`string`

#### Returns

`this`

***

### setNameLocalizations()

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

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

#### Parameters

##### map

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

#### Returns

`this`

***

### setType()

> **setType**(`type`): `this`

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

#### Parameters

##### type

`2` \| `3`

#### Returns

`this`

***

### toWit()

> **toWit**(): `ApplicationCommand`

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

#### Returns

`ApplicationCommand`

#### Implementation of

[`CommandLike`](/docs/reference/js/zaun-bot/interfaces/commandlike/).[`toWit`](/docs/reference/js/zaun-bot/interfaces/commandlike/#towit)
