From b86eabcf1b11c350557bb4f0992af19854769978 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 19 May 2024 10:25:39 -0600 Subject: [PATCH] Buh --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 21857fa..8819659 100644 --- a/index.js +++ b/index.js @@ -1234,7 +1234,7 @@ discord.on("interactionCreate", async (interaction) => { } // Returns image, send embed with image as attachment (we need to bypass discord cache) res.buffer().then(async (buffer) => { - const message = { + interaction.editReply({ embeds: [{ title: `${toTitleCase(type)} Outlook Day ${day}`, image: { @@ -1246,8 +1246,7 @@ discord.on("interactionCreate", async (interaction) => { attachment: buffer, name: `${type}_${day}.png` }] - } - interaction.editReply({ embeds: [embed], files: [attachment] }); + }); }); }).catch((err) => { interaction.editReply({ content: "Failed to get outlook", ephemeral: true });