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

@@ -146,7 +146,8 @@ export const handleLootbox: EffectHandler = async (userId, effect: Extract<Valid
name: item.name,
rarity: item.rarity,
description: item.description,
image: item.imageUrl || item.iconUrl
iconUrl: item.iconUrl,
imageUrl: item.imageUrl,
},
message: winner.message || `You found ${quantity > 1 ? quantity + 'x ' : ''}**${item.name}**!`
};