Fix some message updates not being handled properly

cshd
Dragory 2020-11-02 02:07:15 +02:00
parent 963eb5a47b
commit 910d410d6c
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 1 additions and 0 deletions

View File

@ -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*";