Skip to content

Commit 1c9118e

Browse files
committed
fix checkstyle II
1 parent c6bf413 commit 1c9118e

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/main/java/net/javadiscord/javabot/systems/commands/LeaderboardCommand.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
* Single command housing all leaderboards.
1010
*/
1111
public class LeaderboardCommand extends DelegatingCommandHandler {
12-
public LeaderboardCommand() {
13-
this.addSubcommand("qotw", new QOTWLeaderboardSubcommand());
14-
this.addSubcommand("thanks", new ThanksLeaderboardSubcommand());
15-
this.addSubcommand("help-xp", new ExperienceLeaderboardSubcommand());
16-
}
12+
/**
13+
* Leaderboard command handler.
14+
*/
15+
public LeaderboardCommand() {
16+
this.addSubcommand("qotw", new QOTWLeaderboardSubcommand());
17+
this.addSubcommand("thanks", new ThanksLeaderboardSubcommand());
18+
this.addSubcommand("help-xp", new ExperienceLeaderboardSubcommand());
19+
}
1720
}

src/main/java/net/javadiscord/javabot/systems/commands/subcommands/leaderboard/QOTWLeaderboardSubcommand.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525

2626
import static net.javadiscord.javabot.Bot.imageCache;
2727

28+
/**
29+
* Command for QOTW Leaderboard.
30+
*/
2831
public class QOTWLeaderboardSubcommand extends ImageGenerationUtils implements SlashCommand {
2932
private final Color BACKGROUND_COLOR = Color.decode("#011E2F");
3033
private final Color PRIMARY_COLOR = Color.WHITE;
@@ -35,6 +38,7 @@ public class QOTWLeaderboardSubcommand extends ImageGenerationUtils implements S
3538
private final int MARGIN = 40;
3639
private final int WIDTH = 3000;
3740

41+
@Override
3842
public ReplyCallbackAction handleSlashCommandInteraction(SlashCommandInteractionEvent event) {
3943
Bot.asyncPool.submit(() -> {
4044
try {

0 commit comments

Comments
 (0)