Skip to content

Commit

Permalink
fix: convert filename to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilhermeasper committed Mar 30, 2024
1 parent 32e580c commit a5ecaa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bot/commands/slashCommands/coin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const coin: SlashCommand = {
const attachment = new AttachmentBuilder(
join(
process.env?.ROOT_DIR ?? '.',
`/resources/images/coin_${flipCoinResult.result}.png`
`/resources/images/coin_${flipCoinResult.result.toLowerCase()}.png`
)
);

Expand Down Expand Up @@ -146,5 +146,7 @@ function buildEmbed(
inline: true,
}
)
.setThumbnail(`attachment://coin_${flipCoinResult.result}.png`);
.setThumbnail(
`attachment://coin_${flipCoinResult.result.toLowerCase()}.png`
);
}

0 comments on commit a5ecaa3

Please sign in to comment.