enh: action __event_emitter__ support

This commit is contained in:
Timothy J. Baek
2024-08-15 23:55:31 +02:00
parent e5e1bac242
commit 8ea1a10525
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -167,6 +167,14 @@
message.content += data.content;
} else if (type === 'replace') {
message.content = data.content;
} else if (type === 'action') {
if (data.action === 'continue') {
const continueButton = document.getElementById('continue-response-button');
if (continueButton) {
continueButton.click();
}
}
} else if (type === 'confirmation') {
eventCallback = cb;