Minor discord cl fix (#23833)

This means it won't send a dummy post if no changelog entries are found. The old one just sent it and didn't check if it worked.

(cherry picked from commit 18696d5c1b)
This commit is contained in:
metalgearsloth
2024-01-26 22:22:02 +01:00
committed by Debug
parent bf26b83e70
commit 3b4960c7c0
@@ -125,6 +125,10 @@ def send_to_discord(entries: Iterable[ChangelogEntry]) -> None:
else:
content.write(f"{emoji} - {message}\n")
if count == 0:
print("Skipping discord push as no changelog entries found")
return
print(f"Posting {count} changelog entries to discord webhook")
body = {