mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 09:23:07 +02:00
fix: unnecessary message update logs
This commit is contained in:
parent
9a916339ef
commit
119f997ffe
@ -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');
|
||||
|
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user