Skip to main content

disploy

Classes

Interfaces

Type Aliases

Command

Ƭ Command: ChatInputCommand | ContextMenuCommand

Defined in

packages/disploy/src/commands/Command.ts:32


ContextMenuCommand

Ƭ ContextMenuCommand: UserContextMenuCommand | MessageContextMenuCommand

Defined in

packages/disploy/src/commands/Command.ts:30


DiscordChannel

Ƭ DiscordChannel: GuildTextChannel | GuildVoiceChannel

Defined in

packages/disploy/src/types/DiscordChannel.ts:4


IAdapter

Ƭ IAdapter<T>: (app: App, server: T) => void

Type parameters

Name
T

Type declaration

▸ (app, server): void

Parameters
NameType
appApp
serverT
Returns

void

Defined in

packages/disploy/src/adapters/IAdapter.ts:3


IReqResAdapter

Ƭ IReqResAdapter<REQ, RES>: (app: App, req: REQ, res: RES) => void

Type parameters

Name
REQ
RES

Type declaration

▸ (app, req, res): void

Parameters
NameType
appApp
reqREQ
resRES
Returns

void

Defined in

packages/disploy/src/adapters/IAdapter.ts:4


MessageComponentHandler

Ƭ MessageComponentHandler: ButtonHandler

Defined in

packages/disploy/src/message-components/MessageComponentHandler.ts:13

Variables

RouterEvents

Const RouterEvents: Object

Type declaration

NameType
FinishedRun(randId: string) => string
Respond(interactionId: string) => string

Defined in

packages/disploy/src/router/RouterEvents.ts:1


RuntimeConstants

Const RuntimeConstants: Object

Type declaration

NameType
isNodeboolean

Defined in

packages/disploy/src/utils/runtime.ts:3

Functions

createNextAdapter

createNextAdapter(app): (req: NextApiRequest, res: NextApiResponse<any>) => Promise<void>

Parameters

NameType
appApp

Returns

fn

▸ (req, res): Promise<void>

Parameters
NameType
reqNextApiRequest
resNextApiResponse<any>
Returns

Promise<void>

Defined in

packages/disploy/src/adapters/nextAdapter.ts:5


expressAdapter

expressAdapter(app, server): void

Parameters

NameType
appApp
serverApplication

Returns

void

Defined in

packages/disploy/src/adapters/IAdapter.ts:3