Merge pull request #452 from ZeppelinBot/fix-timeout-expiration-note

fix case note on timeout expiration for manual timeouts
This commit is contained in:
Miikka 2024-01-27 14:39:44 +02:00 committed by GitHub
commit c3601ae7ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,9 @@ export const AuditLogEvents = modActionsEvt({
caseId: existingCaseId,
modId: auditLogEntry.executor?.id || "0",
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 {
await casesPlugin.createCase({