diff --git a/bot/modules/inventory/inventory.view.ts b/bot/modules/inventory/inventory.view.ts index 7201382..be4375a 100644 --- a/bot/modules/inventory/inventory.view.ts +++ b/bot/modules/inventory/inventory.view.ts @@ -103,8 +103,7 @@ export function getLootboxResultMessage( const amountStr = lootResult.amount > 1 ? ` ×${lootResult.amount}` : ""; title = `${config.emoji} ${config.label} — ${i.name}${amountStr}`; description = i.description || ""; - if (description) description += "\n"; - description += `\n**${config.label}** · ×${lootResult.amount || 1} added to inventory`; + description += (description ? "\n\n" : "") + `**${config.label}** · ×${lootResult.amount || 1} added to inventory`; } else if (lootResult.rewardType === "CURRENCY") { title = `${config.emoji} You found ${lootResult.amount.toLocaleString()} AU!`; description = "Coins have been added to your balance."; @@ -181,6 +180,7 @@ export function getLootboxResultMessage( } return { + // TODO: remove cast once discord.js types include ContainerBuilder in MessageEditOptions components: [container] as any, files, flags: MessageFlags.IsComponentsV2,