Class: MessageComponentManager
Constructors
constructor
• new MessageComponentManager(app
, baseHandlers
)
Parameters
Name | Type |
---|---|
app | App |
baseHandlers | ButtonHandler [] |
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
Name | Type |
---|---|
handler | ButtonHandler |
Returns
void
Defined in
packages/disploy/src/message-components/MessageComponentManager.ts:22