> ## Documentation Index
> Fetch the complete documentation index at: https://yor.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Yor.ts | classes/YorUserContextMenuCommand

[yor.ts](../README) / [Exports](../modules) / YorUserContextMenuCommand

# Class: YorUserContextMenuCommand

## Implements

* [`UserContextMenuCommand`](../interfaces/UserContextMenuCommand)

## Table of contents

### Constructors

* [constructor](YorUserContextMenuCommand#constructor)

### Properties

* [builder](YorUserContextMenuCommand#builder)
* [execute](YorUserContextMenuCommand#execute)

## Constructors

### constructor

• **new YorUserContextMenuCommand**(): [`YorUserContextMenuCommand`](YorUserContextMenuCommand)

#### Returns

[`YorUserContextMenuCommand`](YorUserContextMenuCommand)

## Properties

### builder

• **builder**: `ContextMenuCommandBuilder`

#### Implementation of

[UserContextMenuCommand](../interfaces/UserContextMenuCommand).[builder](../interfaces/UserContextMenuCommand#builder)

#### Defined in

[src/structures/YorContextMenuCommand.ts:19](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/YorContextMenuCommand.ts#L19)

***

### execute

• **execute**: (`context`: [`UserContextMenuCommandInteraction`](UserContextMenuCommandInteraction)) => `void` | [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`>

#### Type declaration

▸ (`context`): `void` | [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`>

##### Parameters

| Name      | Type                                                                     |
| :-------- | :----------------------------------------------------------------------- |
| `context` | [`UserContextMenuCommandInteraction`](UserContextMenuCommandInteraction) |

##### Returns

`void` | [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`>

#### Implementation of

[UserContextMenuCommand](../interfaces/UserContextMenuCommand).[execute](../interfaces/UserContextMenuCommand#execute)

#### Defined in

[src/structures/YorContextMenuCommand.ts:20](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/YorContextMenuCommand.ts#L20)
