> ## 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 | modules

[yor.ts](README) / Exports

# yor.ts

## Table of contents

### Classes

* [AutocompleteCommandContext](classes/AutocompleteCommandContext)
* [Base](classes/Base)
* [Channel](classes/Channel)
* [CommandContext](classes/CommandContext)
* [ComponentContext](classes/ComponentContext)
* [ContextMenuCommandInteraction](classes/ContextMenuCommandInteraction)
* [Emoji](classes/Emoji)
* [Guild](classes/Guild)
* [Member](classes/Member)
* [MessageContextMenuCommandInteraction](classes/MessageContextMenuCommandInteraction)
* [ModalContext](classes/ModalContext)
* [Role](classes/Role)
* [Sticker](classes/Sticker)
* [User](classes/User)
* [UserContextMenuCommandInteraction](classes/UserContextMenuCommandInteraction)
* [Webhook](classes/Webhook)
* [WebhookClient](classes/WebhookClient)
* [YorClient](classes/YorClient)
* [YorClientAPI](classes/YorClientAPI)
* [YorClientError](classes/YorClientError)
* [YorInteractionComponent](classes/YorInteractionComponent)
* [YorInteractionModal](classes/YorInteractionModal)
* [YorMessageContextMenuCommand](classes/YorMessageContextMenuCommand)
* [YorSlashCommand](classes/YorSlashCommand)
* [YorUserContextMenuCommand](classes/YorUserContextMenuCommand)

### Interfaces

* [Command](interfaces/Command)
* [Component](interfaces/Component)
* [ContextMenuCommand](interfaces/ContextMenuCommand)
* [MessageContextMenuCommand](interfaces/MessageContextMenuCommand)
* [Modal](interfaces/Modal)
* [UserContextMenuCommand](interfaces/UserContextMenuCommand)
* [YorClientOptions](interfaces/YorClientOptions)

### Type Aliases

* [MiddlewareFunction](modules#middlewarefunction)
* [MiddlewareFunctionNames](modules#middlewarefunctionnames)
* [WebhookClientOptions](modules#webhookclientoptions)

## Type Aliases

### MiddlewareFunction

Ƭ **MiddlewareFunction**\<`T`>: `T` extends `"command"` ? (`context`: [`CommandContext`](classes/CommandContext)) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`> | `void` : `T` extends `"component"` ? (`context`: [`ComponentContext`](classes/ComponentContext)) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`> | `void` : `T` extends `"modal"` ? (`context`: [`ModalContext`](classes/ModalContext)) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`> | `void` : `T` extends `"autocomplete"` ? (`context`: [`AutocompleteCommandContext`](classes/AutocompleteCommandContext)) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`> | `void` : `T` extends `"message"` ? (`context`: [`MessageContextMenuCommandInteraction`](classes/MessageContextMenuCommandInteraction)) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`> | `void` : `T` extends `"user"` ? (`context`: [`CommandContext`](classes/CommandContext)) => [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`void`> | `void` : `never`

#### Type parameters

| Name | Type                                                                 |
| :--- | :------------------------------------------------------------------- |
| `T`  | extends [`MiddlewareFunctionNames`](modules#middlewarefunctionnames) |

#### Defined in

[src/structures/YorClient.ts:48](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/YorClient.ts#L48)

***

### MiddlewareFunctionNames

Ƭ **MiddlewareFunctionNames**: `"command"` | `"component"` | `"modal"` | `"autocomplete"` | `"message"` | `"user"`

#### Defined in

[src/structures/YorClient.ts:40](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/YorClient.ts#L40)

***

### WebhookClientOptions

Ƭ **WebhookClientOptions**\<`T`>: `T`

#### Type parameters

| Name | Type                                                         |
| :--- | :----------------------------------------------------------- |
| `T`  | extends `string` \| \{ `id`: `string` ; `token`: `string`  } |

#### Defined in

[src/structures/WebhookClient.ts:14](https://github.com/OreOreki/yor.ts/blob/ff21935/src/structures/WebhookClient.ts#L14)
