mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
fix: unnecessary message update logs
This commit is contained in:
parent
9a916339ef
commit
119f997ffe
@ -10,7 +10,8 @@ const {
|
|||||||
SelectMenuOptionBuilder,
|
SelectMenuOptionBuilder,
|
||||||
} = require('discord.js');
|
} = require('discord.js');
|
||||||
const {
|
const {
|
||||||
getCommonGuilds, isStaff,
|
getCommonGuilds,
|
||||||
|
isStaff,
|
||||||
} = require('../../lib/users');
|
} = require('../../lib/users');
|
||||||
const ms = require('ms');
|
const ms = require('ms');
|
||||||
const emoji = require('node-emoji');
|
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.partial) newMessage.fetch().then(m => (newMessage = m)).catch(client.log.error);
|
||||||
if (newMessage.flags.has(MessageFlagsBitField.Flags.Ephemeral)) return;
|
if (newMessage.flags.has(MessageFlagsBitField.Flags.Ephemeral)) return;
|
||||||
|
if (!newMessage.edited) return;
|
||||||
|
|
||||||
const ticket = await client.prisma.ticket.findUnique({
|
const ticket = await client.prisma.ticket.findUnique({
|
||||||
include: { guild: true },
|
include: { guild: true },
|
||||||
|
Loading…
Reference in New Issue
Block a user