Skip to content

Commit

Permalink
fix(logging): don't send empty changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Oct 24, 2022
1 parent 0436952 commit 7864c8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/logging.js
Expand Up @@ -109,7 +109,7 @@ async function logAdminEvent(client, {
]),
];

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

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

if (diff && diff.original) {
if (diff?.original && makeDiff(diff)) {
embeds.push(
new EmbedBuilder()
.setColor(colour)
Expand Down

0 comments on commit 7864c8d

Please sign in to comment.