From 63911f43b0ee388cba571a14c9ed313ccc15b23b Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 9 Sep 2023 18:49:44 +0100 Subject: [PATCH] Fix reoll button not working --- src/buttonEvents/Reroll.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/buttonEvents/Reroll.ts b/src/buttonEvents/Reroll.ts index e5aeed9..c1a54ea 100644 --- a/src/buttonEvents/Reroll.ts +++ b/src/buttonEvents/Reroll.ts @@ -28,6 +28,8 @@ export default class Reroll extends ButtonEvent { const image = readFileSync(randomCard.Path); + await interaction.deferReply(); + const attachment = new AttachmentBuilder(image, { name: randomCard.FileName }); const embed = new EmbedBuilder()