Implement merge change

This commit is contained in:
Ethan Lane 2025-01-22 17:50:15 +00:00
parent f726a613ea
commit 6f42cfb8f6

View file

@ -24,12 +24,18 @@ export default class DropEmbedHelper {
AppLogger.LogWarn("CardDropHelperMetadata/GenerateDropEmbed", `Card's colour override is invalid: ${drop.card.id}, ${drop.card.colour}`);
}
let imageUrl = `attachment://${imageFileName}`;
if (drop.card.path.startsWith("http://") || drop.card.path.startsWith("https://")) {
imageUrl = drop.card.path;
}
const embed = new EmbedBuilder()
.setTitle(drop.card.name)
.setDescription(description)
.setFooter({ text: `${CardRarityToString(drop.card.type)} · ${drop.card.id}` })
.setColor(colour)
.setImage(`attachment://${imageFileName}`)
.setImage(imageUrl)
.addFields([
{
name: "Claimed",