mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
fix(logging): don't log useless messageDelete
events
This commit is contained in:
parent
f1029b8320
commit
6b066c177a
@ -13,6 +13,9 @@ module.exports = class extends Listener {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {import("discord.js").Message} message
|
||||||
|
*/
|
||||||
async run(message) {
|
async run(message) {
|
||||||
/** @type {import("client")} */
|
/** @type {import("client")} */
|
||||||
const client = this.client;
|
const client = this.client;
|
||||||
@ -64,6 +67,7 @@ module.exports = class extends Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (message.author.id !== client.user.id && !message.flags.has('Ephemeral')) {
|
||||||
await logMessageEvent(this.client, {
|
await logMessageEvent(this.client, {
|
||||||
action: 'delete',
|
action: 'delete',
|
||||||
diff: {
|
diff: {
|
||||||
@ -75,4 +79,5 @@ module.exports = class extends Listener {
|
|||||||
ticket,
|
ticket,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user