# UserContextMenuCommandInteraction

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

A user context-menu command.

## Extends

- `CommandInteraction`

## Constructors

### Constructor

> **new UserContextMenuCommandInteraction**(`raw`, `data`): `UserContextMenuCommandInteraction`

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

#### Parameters

##### raw

`Interaction`

##### data

`CommandData`

#### Returns

`UserContextMenuCommandInteraction`

#### Inherited from

`CommandInteraction.constructor`

## Properties

### appPermissions

> `readonly` **appPermissions**: `bigint`

Defined in: [sdk/js/src/interactions/base.ts:20](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L20)

The bot's effective permissions in the channel.

#### Inherited from

`CommandInteraction.appPermissions`

***

### botId

> `readonly` **botId**: `string`

Defined in: [sdk/js/src/interactions/base.ts:15](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L15)

The bot's id in this community.

#### Inherited from

`CommandInteraction.botId`

***

### channelId

> `readonly` **channelId**: `string`

Defined in: [sdk/js/src/interactions/base.ts:16](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L16)

#### Inherited from

`CommandInteraction.channelId`

***

### command

> `readonly` **command**: `CommandData`

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

The WIT command data.

#### Inherited from

`CommandInteraction.command`

***

### commandId

> `readonly` **commandId**: `string`

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

#### Inherited from

`CommandInteraction.commandId`

***

### commandName

> `readonly` **commandName**: `string`

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

#### Inherited from

`CommandInteraction.commandName`

***

### createdTimestamp

> `readonly` **createdTimestamp**: `number`

Defined in: [sdk/js/src/interactions/base.ts:24](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L24)

When the host received it, ms.

#### Inherited from

`CommandInteraction.createdTimestamp`

***

### deferred

> **deferred**: `boolean` = `false`

Defined in: [sdk/js/src/interactions/base.ts:30](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L30)

Whether the response was deferred.

#### Inherited from

`CommandInteraction.deferred`

***

### id

> `readonly` **id**: `string`

Defined in: [sdk/js/src/interactions/base.ts:13](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L13)

The interaction id.

#### Inherited from

`CommandInteraction.id`

***

### locale

> `readonly` **locale**: `string`

Defined in: [sdk/js/src/interactions/base.ts:22](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L22)

The invoker's locale (BCP 47), if their client sent one.

#### Inherited from

`CommandInteraction.locale`

***

### member

> `readonly` **member**: [`Member`](/docs/reference/js/zaun-bot/classes/member/)

Defined in: [sdk/js/src/interactions/base.ts:18](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L18)

Who triggered it: `interaction.member.send(...)` sends them a DM.

#### Inherited from

`CommandInteraction.member`

***

### options

> `readonly` **options**: [`CommandInteractionOptionResolver`](/docs/reference/js/zaun-bot/classes/commandinteractionoptionresolver/)

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

#### Inherited from

`CommandInteraction.options`

***

### raw

> `readonly` **raw**: `Interaction`

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

The WIT interaction, for anything the classes do not expose.

#### Inherited from

`CommandInteraction.raw`

***

### replied

> **replied**: `boolean` = `false`

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

Whether an initial response was sent.

#### Inherited from

`CommandInteraction.replied`

## Accessors

### targetId

#### Get Signature

> **get** **targetId**(): `string`

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

The member acted on.

##### Returns

`string`

***

### targetMember

#### Get Signature

> **get** **targetMember**(): [`Member`](/docs/reference/js/zaun-bot/classes/member/)

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

##### Returns

[`Member`](/docs/reference/js/zaun-bot/classes/member/)

***

### userId

#### Get Signature

> **get** **userId**(): `string`

Defined in: [sdk/js/src/interactions/base.ts:44](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L44)

The invoker's member id.

##### Returns

`string`

#### Inherited from

`CommandInteraction.userId`

## Methods

### deferReply()

> **deferReply**(`options?`): `void`

Defined in: [sdk/js/src/interactions/base.ts:81](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L81)

Shows "thinking…" and buys 15 minutes; finish with [editReply](/docs/reference/js/zaun-bot/classes/repliableinteraction/#editreply).

#### Parameters

##### options?

###### ephemeral?

`boolean`

#### Returns

`void`

#### Inherited from

`CommandInteraction.deferReply`

***

### deleteReply()

> **deleteReply**(): `void`

Defined in: [sdk/js/src/interactions/base.ts:92](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L92)

Deletes the original response.

#### Returns

`void`

#### Inherited from

`CommandInteraction.deleteReply`

***

### editReply()

> **editReply**(`payload`): `void`

Defined in: [sdk/js/src/interactions/base.ts:87](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L87)

Replaces the original response (ends a deferred reply).

#### Parameters

##### payload

[`MessagePayload`](/docs/reference/js/zaun-bot/type-aliases/messagepayload/)

#### Returns

`void`

#### Inherited from

`CommandInteraction.editReply`

***

### followUp()

> **followUp**(`payload`): `string`

Defined in: [sdk/js/src/interactions/base.ts:97](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L97)

Another message, within 15 minutes (at most 10).

#### Parameters

##### payload

[`MessagePayload`](/docs/reference/js/zaun-bot/type-aliases/messagepayload/)

#### Returns

`string`

#### Inherited from

`CommandInteraction.followUp`

***

### isAnySelectMenu()

> **isAnySelectMenu**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:67](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L67)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isAnySelectMenu`

***

### isAutocomplete()

> **isAutocomplete**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:69](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L69)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isAutocomplete`

***

### isButton()

> **isButton**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:61](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L61)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isButton`

***

### isChannelSelectMenu()

> **isChannelSelectMenu**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:66](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L66)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isChannelSelectMenu`

***

### isChatInputCommand()

> **isChatInputCommand**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:55](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L55)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isChatInputCommand`

***

### isCommand()

> **isCommand**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:59](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L59)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isCommand`

***

### isContextMenuCommand()

> **isContextMenuCommand**(): `boolean`

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

#### Returns

`boolean`

#### Overrides

`CommandInteraction.isContextMenuCommand`

***

### isMentionableSelectMenu()

> **isMentionableSelectMenu**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:65](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L65)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isMentionableSelectMenu`

***

### isMessageComponent()

> **isMessageComponent**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:60](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L60)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isMessageComponent`

***

### isMessageContextMenuCommand()

> **isMessageContextMenuCommand**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:58](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L58)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isMessageContextMenuCommand`

***

### isModalSubmit()

> **isModalSubmit**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:68](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L68)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isModalSubmit`

***

### isRepliable()

> **isRepliable**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:70](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L70)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isRepliable`

***

### isRoleSelectMenu()

> **isRoleSelectMenu**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:64](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L64)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isRoleSelectMenu`

***

### isStringSelectMenu()

> **isStringSelectMenu**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:62](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L62)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isStringSelectMenu`

***

### isUserContextMenuCommand()

> **isUserContextMenuCommand**(): `this is UserContextMenuCommandInteraction`

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

#### Returns

`this is UserContextMenuCommandInteraction`

#### Overrides

`CommandInteraction.isUserContextMenuCommand`

***

### isUserSelectMenu()

> **isUserSelectMenu**(): `boolean`

Defined in: [sdk/js/src/interactions/base.ts:63](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L63)

#### Returns

`boolean`

#### Inherited from

`CommandInteraction.isUserSelectMenu`

***

### reply()

> **reply**(`payload`): `string`

Defined in: [sdk/js/src/interactions/base.ts:76](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L76)

Answers with a message in the channel (or only to the invoker with `ephemeral`).

#### Parameters

##### payload

[`MessagePayload`](/docs/reference/js/zaun-bot/type-aliases/messagepayload/)

#### Returns

`string`

#### Inherited from

`CommandInteraction.reply`

***

### showModal()

> **showModal**(`modal`): `void`

Defined in: [sdk/js/src/interactions/base.ts:105](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/interactions/base.ts#L105)

Opens a modal for the invoker.

#### Parameters

##### modal

[`ModalBuilder`](/docs/reference/js/zaun-bot/classes/modalbuilder/)

#### Returns

`void`

#### Inherited from

`CommandInteraction.showModal`
