disploy
Classes
- App
- ApplicationCommandRoute
- BaseInteraction
- ChatInputInteraction
- ChatInputInteractionOptions
- CommandManager
- Guild
- GuildMember
- RequestorError
- Rest
- Router
- SnowflakeUtil
- StructureManager
- TResponse
- User
Interfaces
- AppOptions
- ApplicationCommand
- ChatInputCommand
- LoggerOptions
- MessageContextMenuCommand
- RestConfig
- TParams
- TRequest
- UserContextMenuCommand
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
IAdapter
Ƭ IAdapter<T>: (app: App, server: T) => void
Type parameters
| Name |
|---|
T |
Type declaration
▸ (app, server): void
Parameters
| Name | Type |
|---|---|
app | App |
server | T |
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
| Name | Type |
|---|---|
app | App |
req | REQ |
res | RES |
Returns
void
Defined in
packages/disploy/src/adapters/IAdapter.ts:4
Variables
RouterEvents
• Const RouterEvents: Object
Type declaration
| Name | Type |
|---|---|
FinishedRun | (randId: string) => string |
Respond | (interactionId: string) => string |
Defined in
packages/disploy/src/router/RouterEvents.ts:1
RuntimeConstants
• Const RuntimeConstants: Object
Type declaration
| Name | Type |
|---|---|
isNode | boolean |
Defined in
packages/disploy/src/utils/runtime.ts:3
Functions
createNextAdapter
▸ createNextAdapter(app): (req: NextApiRequest, res: NextApiResponse<any>) => Promise<void>
Parameters
| Name | Type |
|---|---|
app | App |
Returns
fn
▸ (req, res): Promise<void>
Parameters
| Name | Type |
|---|---|
req | NextApiRequest |
res | NextApiResponse<any> |
Returns
Promise<void>
Defined in
packages/disploy/src/adapters/nextAdapter.ts:5
expressAdapter
▸ expressAdapter(app, server): void
Parameters
| Name | Type |
|---|---|
app | App |
server | Application |
Returns
void
Defined in
packages/disploy/src/adapters/IAdapter.ts:3