From e2596c4443d015ba67cebd3d917785ee6e1fb40d Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Tue, 27 May 2025 15:52:42 -0600 Subject: [PATCH] Fix bug report command when not uploading image --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 3b18698..e3925b9 100644 --- a/index.js +++ b/index.js @@ -1378,7 +1378,7 @@ discord.on("interactionCreate", async (interaction) => { icon_url: interaction.user.displayAvatarURL() }, image: { - url: interaction.options.getAttachment("screenshot").url || null + url: interaction.options.getAttachment("screenshot") ? interaction.options.getAttachment("screenshot").url : null }, fields: [ {