Skip to main content

Class: MessageComponentRoute

Hierarchy

  • BaseRoute

    MessageComponentRoute

Constructors

constructor

new MessageComponentRoute(app, handler)

Parameters

NameType
appApp
handlerButtonHandler

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

NameType
interactionButtonInteraction

Returns

Promise<void>

Defined in

packages/disploy/src/router/MessageComponentRoute.ts:17