fix(discord): harden slash command routing

This commit is contained in:
Shadow
2026-03-03 11:22:32 -06:00
parent 0eef7a367d
commit b8b1eeb052
8 changed files with 290 additions and 4 deletions

View File

@@ -103,7 +103,11 @@ export function createInboundDebouncer<T>(params: InboundDebounceCreateParams<T>
if (key && buffers.has(key)) {
await flushKey(key);
}
await params.onFlush([item]);
try {
await params.onFlush([item]);
} catch (err) {
params.onError?.(err, [item]);
}
return;
}