Skip to main content

Class: MessageComponentManager

Constructors

constructor

new MessageComponentManager(app, baseHandlers)

Parameters

NameType
appApp
baseHandlersButtonHandler[]

Defined in

packages/disploy/src/message-components/MessageComponentManager.ts:8

Properties

app

Private app: App

Defined in

packages/disploy/src/message-components/MessageComponentManager.ts:8


handlers

Private Readonly handlers: Map<string, ButtonHandler>

Defined in

packages/disploy/src/message-components/MessageComponentManager.ts:6

Methods

getHandlers

getHandlers(): Map<string, ButtonHandler>

Get the registered message component handlers for this manager

Returns

Map<string, ButtonHandler>

Registered handlers in this manager

Defined in

packages/disploy/src/message-components/MessageComponentManager.ts:18


registerHandler

registerHandler(handler): void

Parameters

NameType
handlerButtonHandler

Returns

void

Defined in

packages/disploy/src/message-components/MessageComponentManager.ts:22