mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-16 22:55:03 +00:00
fix: add updated mutes without a reason to the case log
This commit is contained in:
parent
eb5fda8d19
commit
f8db4e58e0
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ export async function muteUser(
|
||||||
if (theCase) {
|
if (theCase) {
|
||||||
// Update old case
|
// Update old case
|
||||||
const noteDetails = [`Mute updated to ${muteTime ? timeUntilUnmuteStr : "indefinite"}`];
|
const noteDetails = [`Mute updated to ${muteTime ? timeUntilUnmuteStr : "indefinite"}`];
|
||||||
const reasons = reason ? [reason] : [];
|
const reasons = reason ? [reason] : ["No reason specified"];
|
||||||
if (muteOptions.caseArgs?.extraNotes) {
|
if (muteOptions.caseArgs?.extraNotes) {
|
||||||
reasons.push(...muteOptions.caseArgs.extraNotes);
|
reasons.push(...muteOptions.caseArgs.extraNotes);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue