yor.ts / Exports

yor.ts

Table of contents

Classes

Interfaces

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

NameType
Textends 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

NameType
Textends string | { id: string ; token: string }

Defined in

src/structures/WebhookClient.ts:14