fix(logging): don't send empty changelogs

This commit is contained in:
Isaac 2022-10-24 20:16:56 +01:00
parent 0436952327
commit 7864c8d544
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -109,7 +109,7 @@ async function logAdminEvent(client, {
]),
];
if (diff && diff.original) {
if (diff?.original && makeDiff(diff)) {
embeds.push(
new EmbedBuilder()
.setColor(colour)
@ -171,7 +171,7 @@ async function logTicketEvent(client, {
]),
];
if (diff && diff.original) {
if (diff?.original && makeDiff(diff)) {
embeds.push(
new EmbedBuilder()
.setColor(colour)
@ -223,7 +223,7 @@ async function logMessageEvent(client, {
]),
];
if (diff && diff.original) {
if (diff?.original && makeDiff(diff)) {
embeds.push(
new EmbedBuilder()
.setColor(colour)