fix timeout millis

This commit is contained in:
Lee 2024-07-02 19:57:25 +01:00
parent 120afee73b
commit 194a5d8119

View File

@ -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)