From 1fab64e7c9443160b389126de37ceceafa8d5881 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Thu, 1 Apr 2021 12:24:44 -0500 Subject: [PATCH] Fix messageContent error --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 5630cba..ef7f6a2 100644 --- a/index.js +++ b/index.js @@ -190,6 +190,9 @@ client.on('messageDelete', message => { messageContent = "Unknown"; messageID = "Unknown"; } + if (!messageContent) { + messageContent = "[NONE]"; + } const deleteEmbed = new Discord.MessageEmbed() .setTitle('Message Deleted') .addField('Author', messageAuthor)