forked from Supositware/Haha-Yes
Fix message update logging
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
2da7caf495
commit
b21c3ea86b
1 changed files with 2 additions and 2 deletions
|
@ -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 && oldMessage.content !== newMessage.content && !message.author.bot) {
|
if (logStats && oldMessage.content !== newMessage.content && !oldMessage.author.bot) {
|
||||||
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')
|
||||||
|
|
Loading…
Reference in a new issue