mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
fix(logging): don't send empty changelogs
This commit is contained in:
parent
0436952327
commit
7864c8d544
@ -109,7 +109,7 @@ async function logAdminEvent(client, {
|
|||||||
]),
|
]),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (diff && diff.original) {
|
if (diff?.original && makeDiff(diff)) {
|
||||||
embeds.push(
|
embeds.push(
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor(colour)
|
.setColor(colour)
|
||||||
@ -171,7 +171,7 @@ async function logTicketEvent(client, {
|
|||||||
]),
|
]),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (diff && diff.original) {
|
if (diff?.original && makeDiff(diff)) {
|
||||||
embeds.push(
|
embeds.push(
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor(colour)
|
.setColor(colour)
|
||||||
@ -223,7 +223,7 @@ async function logMessageEvent(client, {
|
|||||||
]),
|
]),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (diff && diff.original) {
|
if (diff?.original && makeDiff(diff)) {
|
||||||
embeds.push(
|
embeds.push(
|
||||||
new EmbedBuilder()
|
new EmbedBuilder()
|
||||||
.setColor(colour)
|
.setColor(colour)
|
||||||
|
Loading…
Reference in New Issue
Block a user