From 8f5096ce5ed9a136b9f0825c6d57bbf18f6909a6 Mon Sep 17 00:00:00 2001 From: "Isaac (eartharoid)" Date: Tue, 25 Aug 2020 20:26:29 +0100 Subject: [PATCH] Fixed archive embeds --- src/events/messageUpdate.js | 2 -- src/modules/archive.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/events/messageUpdate.js b/src/events/messageUpdate.js index eee70d7..02452a1 100644 --- a/src/events/messageUpdate.js +++ b/src/events/messageUpdate.js @@ -32,8 +32,6 @@ module.exports = { return; } - if(o.content === n.content) return; // apparently editing a message isn't the only thing that emits this event - let ticket = await Ticket.findOne({ where: { channel: n.channel.id } }); if(!ticket) return; diff --git a/src/modules/archive.js b/src/modules/archive.js index 3822325..b1a96ea 100644 --- a/src/modules/archive.js +++ b/src/modules/archive.js @@ -75,7 +75,7 @@ module.exports.add = (message) => { username: m.user.username, discriminator: m.user.discriminator, displayName: m.user.displayName || m.user.username, - color: m.displayColor, + color: m.displayColor === 0 ? null : m.displayColor, badge: m.user.bot ? 'bot' : null });