hotfix/0.1.1 (#23)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- Fix gifs not animating Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/23 Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
This commit is contained in:
parent
f8af969104
commit
6629ac30aa
8 changed files with 22 additions and 19 deletions
|
@ -14,14 +14,14 @@ export default class Reroll extends ButtonEvent {
|
|||
|
||||
const image = readFileSync(randomCard.Path);
|
||||
|
||||
const attachment = new AttachmentBuilder(image, { name: `${randomCard.Id}.png` });
|
||||
const attachment = new AttachmentBuilder(image, { name: randomCard.FileName });
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle(randomCard.Name)
|
||||
.setDescription(randomCard.Series.Name)
|
||||
.setFooter({ text: CardRarityToString(randomCard.Rarity) })
|
||||
.setColor(CardRarityToColour(randomCard.Rarity))
|
||||
.setImage(`attachment://${randomCard.Id}.png`);
|
||||
.setImage(`attachment://${randomCard.FileName}`);
|
||||
|
||||
const row = new ActionRowBuilder<ButtonBuilder>();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue