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

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

# Class: AutocompleteCommandContext

## Hierarchy

* `BaseContext`

  ↳ **`AutocompleteCommandContext`**

## Table of contents

### Constructors

* [constructor](AutocompleteCommandContext#constructor)

### Properties

* [API](AutocompleteCommandContext#api)
* [applicationId](AutocompleteCommandContext#applicationid)
* [channel](AutocompleteCommandContext#channel)
* [client](AutocompleteCommandContext#client)
* [interactionId](AutocompleteCommandContext#interactionid)
* [raw](AutocompleteCommandContext#raw)
* [token](AutocompleteCommandContext#token)

### Methods

* [decorate](AutocompleteCommandContext#decorate)
* [respond](AutocompleteCommandContext#respond)

## Constructors

### constructor

• **new AutocompleteCommandContext**(`client`, `data`): [`AutocompleteCommandContext`](AutocompleteCommandContext)

Initializes a new instance of the APIApplicationCommandAutocompleteInteraction class.

#### Parameters

| Name     | Type                                           | Description                               |
| :------- | :--------------------------------------------- | :---------------------------------------- |
| `client` | [`YorClient`](YorClient)                       | The client object.                        |
| `data`   | `APIApplicationCommandAutocompleteInteraction` | The data used to initialize the instance. |

#### Returns

[`AutocompleteCommandContext`](AutocompleteCommandContext)

#### Overrides

BaseContext.constructor

#### Defined in

[src/structures/Contexts/AutocompleteCommandContext.ts:30](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Contexts/AutocompleteCommandContext.ts#L30)

## Properties

### API

• `Private` **API**: `InteractionsAPI`

#### Defined in

[src/structures/Contexts/AutocompleteCommandContext.ts:15](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Contexts/AutocompleteCommandContext.ts#L15)

***

### applicationId

• `Readonly` **applicationId**: `string`

#### Defined in

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

***

### channel

• **channel**: [`Channel`](Channel)

#### Defined in

[src/structures/Contexts/AutocompleteCommandContext.ts:22](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Contexts/AutocompleteCommandContext.ts#L22)

***

### client

• **client**: [`YorClient`](YorClient)

#### Inherited from

BaseContext.client

#### Defined in

[src/structures/Base.ts:4](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Base.ts#L4)

***

### interactionId

• `Readonly` **interactionId**: `string`

#### Defined in

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

***

### raw

• `Readonly` **raw**: `APIApplicationCommandAutocompleteInteraction`

#### Defined in

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

***

### token

• `Readonly` **token**: `string`

#### Defined in

[src/structures/Contexts/AutocompleteCommandContext.ts:21](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Contexts/AutocompleteCommandContext.ts#L21)

## Methods

### decorate

▸ **decorate**(`name`, `data`): `unknown`

Decorates the object with a new property.

#### Parameters

| Name   | Type      | Description                         |
| :----- | :-------- | :---------------------------------- |
| `name` | `string`  | The name of the property.           |
| `data` | `unknown` | The data to assign to the property. |

#### Returns

`unknown`

The decorated object.

#### Inherited from

BaseContext.decorate

#### Defined in

[src/structures/Contexts/BaseContext.ts:22](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Contexts/BaseContext.ts#L22)

***

### respond

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

#### Parameters

| Name   | Type                                                    |
| :----- | :------------------------------------------------------ |
| `data` | `APICommandAutocompleteInteractionResponseCallbackData` |

#### Returns

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

#### Defined in

[src/structures/Contexts/AutocompleteCommandContext.ts:46](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/Contexts/AutocompleteCommandContext.ts#L46)
