Skip to content

Commit 2a7f934

Browse files
Change timeout embed to display the time left rather than the absolute time when the timeout ends
1 parent 522eeb8 commit 2a7f934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/javadiscord/javabot/systems/moderation/ModerationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public void kick(User user, String reason, Member kickedBy, MessageChannel chann
347347
return buildModerationEmbed(member.getUser(), timedOutBy, reason)
348348
.setTitle("Timeout")
349349
.setColor(Responses.Type.ERROR.getColor())
350-
.addField("Until", String.format("<t:%d>", Instant.now().plus(duration).getEpochSecond()), true)
350+
.addField("Ends", String.format("<t:%d:R>", Instant.now().plus(duration).getEpochSecond()), true)
351351
.build();
352352
}
353353

0 commit comments

Comments
 (0)