Check for message content

Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
loicbersier 2020-05-01 22:49:16 +02:00
parent 3d8f20f054
commit 788dc27c3d

View file

@ -11,7 +11,7 @@ class messageUpdateListener extends Listener {
async exec(oldMessage, newMessage) { async exec(oldMessage, newMessage) {
const logStats = await LogStats.findOne({where: {guild: newMessage.guild.id}}); const logStats = await LogStats.findOne({where: {guild: newMessage.guild.id}});
if (logStats) { if (logStats && oldMessage.content !== newMessage.content) {
const channel = this.client.channels.resolve(await logStats.get('channel')); const channel = this.client.channels.resolve(await logStats.get('channel'));
let Embed = this.client.util.embed() let Embed = this.client.util.embed()
.setColor('NAVY') .setColor('NAVY')