feat: rewrite lootbox pull results with Components V2 and separate icon/image URLs

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
syntaxbullet
2026-03-18 21:51:28 +01:00
parent 0517cd638c
commit 86142cba6c
3 changed files with 139 additions and 90 deletions

View File

@@ -3,7 +3,7 @@ import { SlashCommandBuilder } from "discord.js";
import { inventoryService } from "@shared/modules/inventory/inventory.service";
import { userService } from "@shared/modules/user/user.service";
import { createErrorEmbed } from "@lib/embeds";
import { getItemUseResultEmbed } from "@/modules/inventory/inventory.view";
import { getLootboxResultMessage } from "@/modules/inventory/inventory.view";
import { withCommandErrorHandling } from "@lib/commandUtils";
import { getGuildConfig } from "@shared/lib/config";
@@ -57,9 +57,8 @@ export const use = createCommand({
}
}
const { embed, files } = getItemUseResultEmbed(result.results, result.item);
await interaction.editReply({ embeds: [embed], files });
const message = getLootboxResultMessage(result.results, result.item);
await interaction.editReply(message as any);
}
);
},