> ## 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 | interfaces/Command

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

# Interface: Command

## Implemented by

* [`YorSlashCommand`](../classes/YorSlashCommand)

## Table of contents

### Properties

* [autocomplete](Command#autocomplete)
* [builder](Command#builder)
* [execute](Command#execute)

## Properties

### autocomplete

• **autocomplete**: (`context`: [`AutocompleteCommandContext`](../classes/AutocompleteCommandContext)) => `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` | [`AutocompleteCommandContext`](../classes/AutocompleteCommandContext) |

##### Returns

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

#### Defined in

[src/interfaces/Command.ts:18](https://github.com/OreOreki/yor.ts/blob/ff21935/src/interfaces/Command.ts#L18)

***

### builder

• **builder**: `SlashCommandBuilder` | `SlashCommandSubcommandsOnlyBuilder` | [`Omit`](https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys)\<`SlashCommandBuilder`, `"addSubcommand"` | `"addSubcommandGroup"`>

#### Defined in

[src/interfaces/Command.ts:13](https://github.com/OreOreki/yor.ts/blob/ff21935/src/interfaces/Command.ts#L13)

***

### execute

• **execute**: (`context`: [`CommandContext`](../classes/CommandContext)) => `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` | [`CommandContext`](../classes/CommandContext) |

##### Returns

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

#### Defined in

[src/interfaces/Command.ts:17](https://github.com/OreOreki/yor.ts/blob/ff21935/src/interfaces/Command.ts#L17)
