diff --git a/main.js b/main.js index 8545497..4cf71b1 100644 --- a/main.js +++ b/main.js @@ -36,7 +36,7 @@ client.on('message', message => { } else if (message.attachments.first() != undefined) { let storedMessage = message.attachments.first(); - link = new Discord.MessageAttachment(message.url); + link = message.url; messageId = message.id; author = message.author.username; yes = true;