Skip to content

Commit c389836

Browse files
author
Dynxsty
authored
fixed time formatting in ServerInfo.java
1 parent 049fcd4 commit c389836

File tree

1 file changed

+4
-4
lines changed
  • src/main/java/com/javadiscord/javabot/commands/user_commands

1 file changed

+4
-4
lines changed

src/main/java/com/javadiscord/javabot/commands/user_commands/ServerInfo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static void exCommand (CommandEvent event) {
2424
long channelCount = event.getGuild().getChannels().stream().count() - catCount;
2525

2626
String guildDate = event.getGuild().getTimeCreated().format(TimeUtils.STANDARD_FORMATTER);
27-
String createdDiff = TimeUtils.formatDurationToNow(event.getGuild().getTimeCreated());
27+
String createdDiff = " (" + TimeUtils.formatDurationToNow(event.getGuild().getTimeCreated()) + ")";
2828

2929
EmbedBuilder eb = new EmbedBuilder()
3030
.setColor(new Color(0x2F3136))
@@ -44,7 +44,7 @@ public static void exCommand (CommandEvent event) {
4444
.setTimestamp(new Date().toInstant());
4545

4646
if (event.getGuild().getId().equals("648956210850299986")) {
47-
event.reply(new MessageBuilder().setEmbed(eb.build()).setActionRows(ActionRow.of(Button.link("Website", Constants.WEBSITE))).build());
47+
event.reply(new MessageBuilder().setEmbed(eb.build()).setActionRows(ActionRow.of(Button.link(Constants.WEBSITE, "Website"))).build());
4848
} else { event.reply(eb.build()); }
4949

5050

@@ -59,7 +59,7 @@ public static void exCommand (SlashCommandEvent event) {
5959
long channelCount = event.getGuild().getChannels().stream().count() - catCount;
6060

6161
String guildDate = event.getGuild().getTimeCreated().format(TimeUtils.STANDARD_FORMATTER);
62-
String createdDiff = TimeUtils.formatDurationToNow(event.getGuild().getTimeCreated());
62+
String createdDiff = " (" + TimeUtils.formatDurationToNow(event.getGuild().getTimeCreated()) + ")";
6363

6464
EmbedBuilder eb = new EmbedBuilder()
6565
.setColor(new Color(0x2F3136))
@@ -94,4 +94,4 @@ protected void execute(CommandEvent event) {
9494

9595
exCommand(event);
9696
}
97-
}
97+
}

0 commit comments

Comments
 (0)