Yor.ts
Yor.ts | modules
yor.ts / Exports
yor.ts
Table of contents
Classes
- AutocompleteCommandContext
- Base
- Channel
- CommandContext
- ComponentContext
- ContextMenuCommandInteraction
- Emoji
- Guild
- Member
- MessageContextMenuCommandInteraction
- ModalContext
- Role
- Sticker
- User
- UserContextMenuCommandInteraction
- Webhook
- WebhookClient
- YorClient
- YorClientAPI
- YorClientError
- YorInteractionComponent
- YorInteractionModal
- YorMessageContextMenuCommand
- YorSlashCommand
- YorUserContextMenuCommand
Interfaces
- Command
- Component
- ContextMenuCommand
- MessageContextMenuCommand
- Modal
- UserContextMenuCommand
- YorClientOptions
Type Aliases
Type Aliases
MiddlewareFunction
Ƭ MiddlewareFunction<T
>: T
extends "command"
? (context
: CommandContext
) => Promise
<void
> | void
: T
extends "component"
? (context
: ComponentContext
) => Promise
<void
> | void
: T
extends "modal"
? (context
: ModalContext
) => Promise
<void
> | void
: T
extends "autocomplete"
? (context
: AutocompleteCommandContext
) => Promise
<void
> | void
: T
extends "message"
? (context
: MessageContextMenuCommandInteraction
) => Promise
<void
> | void
: T
extends "user"
? (context
: CommandContext
) => Promise
<void
> | void
: never
Type parameters
Name | Type |
---|---|
T | extends MiddlewareFunctionNames |
Defined in
src/structures/YorClient.ts:48
MiddlewareFunctionNames
Ƭ MiddlewareFunctionNames: "command"
| "component"
| "modal"
| "autocomplete"
| "message"
| "user"
Defined in
src/structures/YorClient.ts:40
WebhookClientOptions
Ƭ WebhookClientOptions<T
>: T
Type parameters
Name | Type |
---|---|
T | extends string | { id : string ; token : string } |
Defined in
Was this page helpful?