> ## 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/YorSlashCommand

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

# Class: YorSlashCommand

## Implements

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

## Table of contents

### Constructors

* [constructor](YorSlashCommand#constructor)

### Properties

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

## Constructors

### constructor

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

#### Returns

[`YorSlashCommand`](YorSlashCommand)

## Properties

### autocomplete

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

##### Returns

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

#### Implementation of

[Command](../interfaces/Command).[autocomplete](../interfaces/Command#autocomplete)

#### Defined in

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

***

### builder

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

#### Implementation of

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

#### Defined in

[src/structures/YorSlashCommand.ts:12](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/YorSlashCommand.ts#L12)

***

### execute

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

##### Returns

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

#### Implementation of

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

#### Defined in

[src/structures/YorSlashCommand.ts:16](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/YorSlashCommand.ts#L16)
