fix: stabilize docs and tests after system event timestamps

This commit is contained in:
Peter Steinberger
2026-01-13 03:51:34 +00:00
parent 9f1f65f0e3
commit 980f274fc9
6 changed files with 12 additions and 10 deletions

View File

@@ -31,7 +31,7 @@ beforeEach(() => {
describe("discord native commands", () => {
it(
"streams tool results for native slash commands",
{ timeout: 10_000 },
{ timeout: 30_000 },
async () => {
const { ChannelType } = await import("@buape/carbon");
const { createDiscordNativeCommand } = await import("./monitor.js");

View File

@@ -179,7 +179,9 @@ export function registerDiscordListener(
listeners: Array<object>,
listener: object,
) {
if (listeners.some((existing) => existing.constructor === listener.constructor)) {
if (
listeners.some((existing) => existing.constructor === listener.constructor)
) {
return false;
}
listeners.push(listener);