mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
fix case note on timeout expiration for manual timeouts
This commit is contained in:
parent
cfadfe2d91
commit
be87fe6c43
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ export const AuditLogEvents = modActionsEvt({
|
||||||
caseId: existingCaseId,
|
caseId: existingCaseId,
|
||||||
modId: auditLogEntry.executor?.id || "0",
|
modId: auditLogEntry.executor?.id || "0",
|
||||||
body: auditLogEntry.reason || "",
|
body: auditLogEntry.reason || "",
|
||||||
noteDetails: [`Timeout set to expire on <t:${moment.utc(muteChange.new as string).valueOf()}>`],
|
noteDetails: [`Timeout set to expire on <t:${Math.ceil(moment.utc(muteChange.new as string).valueOf() / 1_000)}>`],
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
await casesPlugin.createCase({
|
await casesPlugin.createCase({
|
||||||
|
|
Loading…
Add table
Reference in a new issue