fix: unnecessary message update logs

This commit is contained in:
Isaac 2022-10-26 11:34:55 +01:00
parent 9a916339ef
commit 119f997ffe
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33
2 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,8 @@ const {
SelectMenuOptionBuilder,
} = require('discord.js');
const {
getCommonGuilds, isStaff,
getCommonGuilds,
isStaff,
} = require('../../lib/users');
const ms = require('ms');
const emoji = require('node-emoji');

View File

@ -22,6 +22,7 @@ module.exports = class extends Listener {
if (newMessage.partial) newMessage.fetch().then(m => (newMessage = m)).catch(client.log.error);
if (newMessage.flags.has(MessageFlagsBitField.Flags.Ephemeral)) return;
if (!newMessage.edited) return;
const ticket = await client.prisma.ticket.findUnique({
include: { guild: true },