From de6da25bdbb8a9fc4da4a18398a8391eea53f900 Mon Sep 17 00:00:00 2001 From: Evorp <3vorpgaming@gmail.com> Date: Mon, 4 Dec 2023 20:58:25 -0800 Subject: [PATCH] remove unused variable --- src/helpers/images/getImage.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/helpers/images/getImage.ts b/src/helpers/images/getImage.ts index 2ccbf2b0..7e11537f 100644 --- a/src/helpers/images/getImage.ts +++ b/src/helpers/images/getImage.ts @@ -81,11 +81,9 @@ export async function getImageFromChannel(msgOrInteraction: Message | Interactio */ export default async function getImage(msgOrInteraction: Message | Interaction) { let url: string; - let author: string; // if it's a message we check if the message itself has an attachment if (msgOrInteraction instanceof Message) { - author = msgOrInteraction.author.id; url = await getImageFromMessage(msgOrInteraction); if (isImage(url)) return removeMetadata(url);