Create use effect command #419
1 changed files with 7 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue