fix: unblock discord listener concurrency

This commit is contained in:
Peter Steinberger committed 2026-01-20 19:30:32 +00:00
1 parent 21370fc09b
commit b012b1105e
6 files changed
+101 -16

No files matched your search

+3 -3
View File
@@ -1,4 +1,4 @@
import { Editor, type EditorTheme, type TUI, Key, matchesKey } from "@mariozechner/pi-tui";
import { Editor, type EditorTheme, Key, matchesKey } from "@mariozechner/pi-tui";
export class CustomEditor extends Editor {
onEscape?: () => void;
@@ -12,8 +12,8 @@ export class CustomEditor extends Editor {
onShiftTab?: () => void;
onAltEnter?: () => void;
constructor(tui: TUI, theme: EditorTheme) {
super(tui, theme);
constructor(theme: EditorTheme) {
super(theme);
}
handleInput(data: string): void {
if (matchesKey(data, Key.alt("enter")) && this.onAltEnter) {