forked from Fascinated/Bat
fix timeout millis
This commit is contained in:
parent
120afee73b
commit
194a5d8119
@ -138,7 +138,7 @@ public class MemberListener implements EventListener {
|
|||||||
OffsetDateTime timeoutEnd = event.getNewTimeOutEnd();
|
OffsetDateTime timeoutEnd = event.getNewTimeOutEnd();
|
||||||
if (user.getDiscordUser().isBot() || timeoutEnd == null) return;
|
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()
|
logFeature.sendLog(guild, LogType.MEMBER_TIMEOUT, EmbedUtils.errorEmbed()
|
||||||
.setDescription(new EmbedDescriptionBuilder("Member Timed Out")
|
.setDescription(new EmbedDescriptionBuilder("Member Timed Out")
|
||||||
.appendLine("Member: %s".formatted(user.getDiscordUser().getAsMention()), true)
|
.appendLine("Member: %s".formatted(user.getDiscordUser().getAsMention()), true)
|
||||||
|
Loading…
Reference in New Issue
Block a user