From 910d410d6c2b5a1ec0effd5cbdfa5ba7b9b59e6a Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 2 Nov 2020 02:07:15 +0200 Subject: [PATCH] Fix some message updates not being handled properly --- src/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.js b/src/main.js index 788d0ef..076855b 100644 --- a/src/main.js +++ b/src/main.js @@ -188,6 +188,7 @@ function initBaseMessageHandlers() { if (! msg || ! msg.author) return; if (msg.author.id === bot.user.id) return; if (await blocked.isBlocked(msg.author.id)) return; + if (! msg.content) return; // Old message content doesn't persist between bot restarts const oldContent = oldMessage && oldMessage.content || "*Unavailable due to bot restart*";