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

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

# Class: YorInteractionComponent

## Implements

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

## Table of contents

### Constructors

* [constructor](YorInteractionComponent#constructor)

### Properties

* [execute](YorInteractionComponent#execute)
* [id](YorInteractionComponent#id)

## Constructors

### constructor

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

#### Returns

[`YorInteractionComponent`](YorInteractionComponent)

## Properties

### execute

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

##### Returns

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

#### Implementation of

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

#### Defined in

[src/structures/YorInteractionComponent.ts:7](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/YorInteractionComponent.ts#L7)

***

### id

• **id**: `string`

#### Implementation of

[Component](../interfaces/Component).[id](../interfaces/Component#id)

#### Defined in

[src/structures/YorInteractionComponent.ts:6](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/YorInteractionComponent.ts#L6)
