From 3f5757d28f369c7ac2edf7ce7f5c43f5c6a6aee4 Mon Sep 17 00:00:00 2001 From: shni Date: Tue, 7 Oct 2025 11:35:08 -0500 Subject: [PATCH] =?UTF-8?q?fix(racha):=20mejorar=20la=20construcci=C3=B3n?= =?UTF-8?q?=20del=20display=20en=20el=20comando=20de=20racha?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/tasks.json | 17 +++++++++++++++++ src/commands/messages/game/racha.ts | 11 ++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..3a6ec43 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Typecheck: tsc --noEmit", + "type": "shell", + "command": "npm", + "args": [ + "run", + "-s", + "tsc", + "--", + "--noEmit" + ] + } + ] +} \ No newline at end of file diff --git a/src/commands/messages/game/racha.ts b/src/commands/messages/game/racha.ts index e26f913..4d46244 100644 --- a/src/commands/messages/game/racha.ts +++ b/src/commands/messages/game/racha.ts @@ -3,7 +3,11 @@ import type Amayo from "../../../core/client"; import { getStreakInfo, updateStreak } from "../../../game/streaks/service"; import type { TextBasedChannel } from "discord.js"; import { fetchItemBasics, formatItemLabel, sendDisplayReply } from "./_helpers"; -import { buildDisplay, textBlock, dividerBlock } from "../../../core/lib/componentsV2"; +import { + buildDisplay, + textBlock, + dividerBlock, +} from "../../../core/lib/componentsV2"; export const command: CommandMessage = { name: "racha", @@ -98,10 +102,7 @@ export const command: CommandMessage = { ); } - const display = buildDisplay( - daysIncreased ? 0x00ff00 : 0xffa500, - blocks - ); + const display = buildDisplay(daysIncreased ? 0x00ff00 : 0xffa500, blocks); await sendDisplayReply(message, display); } catch (error) {