3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-16 14:45:02 +00:00

fix: add updated mutes without a reason to the case log

This commit is contained in:
Ruby 2024-11-09 07:53:06 +01:00
parent eb5fda8d19
commit f8db4e58e0
No known key found for this signature in database
GPG key ID: E0BDFAF7AE9E0531

View file

@ -245,7 +245,7 @@ export async function muteUser(
if (theCase) {
// Update old case
const noteDetails = [`Mute updated to ${muteTime ? timeUntilUnmuteStr : "indefinite"}`];
const reasons = reason ? [reason] : [];
const reasons = reason ? [reason] : ["No reason specified"];
if (muteOptions.caseArgs?.extraNotes) {
reasons.push(...muteOptions.caseArgs.extraNotes);
}