From 187d6eba2305ec620c8f1748483424ae5a095812 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Sat, 6 Jun 2026 03:08:16 +0700 Subject: [PATCH] chore: session auto-commit --- .github/workflows/deploy.yml | 17 +++++++++++++++++ src/discord/interactionHandler.ts | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 840d5a5..09f8df3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,23 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Set up Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: latest + + - name: Install dependencies + run: bun install + + - name: Type check + run: bun run typecheck + + - name: Run tests + run: bun test + + - name: Lint + run: bun run lint + - name: Set lowercase image name run: echo "IMAGE_NAME=${IMAGE_NAME,,}" >> "$GITHUB_ENV" diff --git a/src/discord/interactionHandler.ts b/src/discord/interactionHandler.ts index e9c30fd..e9af7f9 100644 --- a/src/discord/interactionHandler.ts +++ b/src/discord/interactionHandler.ts @@ -128,7 +128,7 @@ export async function handleInteraction( } catch (error) { // Normalize Zod validation errors to our ValidationError type const normalized = error instanceof z.ZodError - ? new ValidationError(error.errors.map(e => e.message).join("; ")) + ? new ValidationError(error.issues.map(e => e.message).join("; ")) : error; logger.warn("Booster-role command failed", { error: normalized instanceof Error ? normalized.message : String(normalized) }); // If already deferred, edit the reply instead of replying anew