Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Dec 5, 2023
1 parent 6e46527 commit de6da25
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/helpers/images/getImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit de6da25

Please sign in to comment.