diff --git a/src/index.js b/src/index.js index 070db4f..28181af 100644 --- a/src/index.js +++ b/src/index.js @@ -115,7 +115,7 @@ client.on('ready', () => { console.log("File change detected!"); channel.messages - .fetch(sentMessage.id) + .fetch(message_id) .then((fetchedMessage) => { console.log('Message exists');