From 194a5d8119fd9c88354b7fdc748b9b2fae7f0689 Mon Sep 17 00:00:00 2001 From: Liam Date: Tue, 2 Jul 2024 19:57:25 +0100 Subject: [PATCH] fix timeout millis --- .../bat/features/logging/listeners/MemberListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java b/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java index bf5e8b9..104090d 100644 --- a/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java +++ b/src/main/java/cc/fascinated/bat/features/logging/listeners/MemberListener.java @@ -138,7 +138,7 @@ public class MemberListener implements EventListener { OffsetDateTime timeoutEnd = event.getNewTimeOutEnd(); if (user.getDiscordUser().isBot() || timeoutEnd == null) return; - long millis = timeoutEnd.toInstant().toEpochMilli(); + long millis = timeoutEnd.toInstant().toEpochMilli() / 1000; logFeature.sendLog(guild, LogType.MEMBER_TIMEOUT, EmbedUtils.errorEmbed() .setDescription(new EmbedDescriptionBuilder("Member Timed Out") .appendLine("Member: %s".formatted(user.getDiscordUser().getAsMention()), true)