Skip to content

Commit

Permalink
update: last attachements extension (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDams authored Nov 15, 2024
1 parent 78c65e7 commit 87db0be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commands/last.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ const getMatchItems = async (interaction, playerDatas, steamDatas, playerHistory
// { name: 'Entries (WR)', value: entries, inline: true },
)
.setThumbnail(`attachment://${faceitElo}${i}.png`)
.setImage(`attachment://${mapName}.jpg`)
.setImage(`attachment://${mapName}${i}.jpg`)
.setColor(result ? color.won : color.lost)
.setFooter({ text: `Steam: ${steamDatas?.personaname || steamDatas}`, iconURL: 'attachment://game.png' })
.setFooter({ text: `Steam: ${steamDatas?.personaname || steamDatas}`, iconURL: `attachment://game${i}.png` })

if (fs.existsSync(mapThumbnail))
filesAtt.push(
new Discord.AttachmentBuilder(mapThumbnail, { name: `${mapName}.jpg` }),
new Discord.AttachmentBuilder(`images/${game}.png`, { name: 'game.png' })
new Discord.AttachmentBuilder(mapThumbnail, { name: `${mapName}${i}.jpg` }),
new Discord.AttachmentBuilder(`images/${game}.png`, { name: `game${i}.png` })
)

cards.push(card)
Expand Down

0 comments on commit 87db0be

Please sign in to comment.