feat: mejorar la presentación de estadísticas y mensajes de error en los comandos de racha, estadísticas y tienda

This commit is contained in:
2025-10-08 22:51:15 -05:00
parent 32ede57d89
commit d842a4ebd5
3 changed files with 80 additions and 48 deletions

View File

@@ -178,7 +178,9 @@ export const command: CommandMessage = {
console.error("Error handling shop interaction:", error);
if (!interaction.replied && !interaction.deferred) {
await interaction.reply({
content: `❌ Error: ${error?.message ?? error}`,
content: `<:Cross:1420535096208920576> Error: ${
error?.message ?? error
}`,
flags: MessageFlags.Ephemeral,
});
}
@@ -229,7 +231,7 @@ async function buildShopPanel(
},
{
type: 14,
divider: true,
divider: false,
spacing: 2,
},
],
@@ -277,13 +279,13 @@ async function buildShopPanel(
container.components.push({
type: 10,
content: `${label}\n\n${
item.description || undefined
item.description || null
}${statsInfo}\n\nPrecio: ${price}${stockInfo}`,
});
container.components.push({
type: 14,
divider: true,
divider: false,
spacing: 1,
});
}
@@ -308,7 +310,7 @@ async function buildShopPanel(
const stockText =
offer.stock != null ? ` (${offer.stock} disponibles)` : "";
const selectedMark = isSelected ? " " : "";
const selectedMark = isSelected ? " <a:Sparkles:1321196183133098056>" : "";
container.components.push({
type: 9,