Skip to main content

Class: MessageComponentManager

Constructors

constructor

new MessageComponentManager(app)

Parameters

NameType
appApp

Defined in

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

Properties

app

Private app: App

Defined in

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


handlers

Private Readonly handlers: Map<string, ButtonHandler>

Defined in

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

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:14


registerHandler

registerHandler(handler): void

Parameters

NameType
handlerButtonHandler

Returns

void

Defined in

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