Class: MessageComponentRoute
Hierarchy
BaseRoute
↳
MessageComponentRoute
Constructors
constructor
• new MessageComponentRoute(app
, handler
)
Parameters
Name | Type |
---|---|
app | App |
handler | ButtonHandler |
Overrides
BaseRoute.constructor
Defined in
packages/disploy/src/router/MessageComponentRoute.ts:11
Properties
app
• Protected
app: App
Inherited from
BaseRoute.app
Defined in
packages/disploy/src/router/BaseRoute.ts:10
customId
• customId: string
Defined in
packages/disploy/src/router/MessageComponentRoute.ts:9
handler
• Private
handler: ButtonHandler
Defined in
packages/disploy/src/router/MessageComponentRoute.ts:11
type
• type: InteractionType
The type of interaction this route is for.
Inherited from
BaseRoute.type
Defined in
packages/disploy/src/router/BaseRoute.ts:8
Methods
buttonRun
▸ buttonRun(interaction
): Promise
<void
>
Parameters
Name | Type |
---|---|
interaction | ButtonInteraction |
Returns
Promise
<void
>
Defined in
packages/disploy/src/router/MessageComponentRoute.ts:17