disploy
Classes
- App
- ApplicationCommandRoute
- BaseChannel
- BaseInteraction
- ButtonInteraction
- ChannelManager
- ChatInputInteraction
- ChatInputInteractionOptions
- CommandInteraction
- CommandManager
- ContextMenuInteraction
- Guild
- GuildBan
- GuildMember
- GuildTextChannel
- Message
- MessageComponentInteraction
- MessageComponentManager
- MessageComponentRoute
- MessageContextMenuInteraction
- MessageManager
- PartialChannel
- PartialGuildMember
- RequestorError
- RouteParams
- Router
- SnowflakeUtil
- StructureManager
- TResponse
- User
- UserContextMenuInteraction
- UserInteraction
Interfaces
- AppOptions
- ApplicationCommand
- BaseMessageComponentHandler
- ButtonHandler
- ChatInputCommand
- MessageContextMenuCommand
- StartAppOptions
- 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
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
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
MessageComponentHandler
Ƭ MessageComponentHandler: ButtonHandler
Defined in
packages/disploy/src/message-components/MessageComponentHandler.ts:13
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