diff --git a/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/OverviewCommand.java b/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/OverviewCommand.java index 56f264f5..169e6fbd 100644 --- a/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/OverviewCommand.java +++ b/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/OverviewCommand.java @@ -58,7 +58,7 @@ public int getCooldown() { @Override public void onCommand(TextChannel channel, Member m, SlashCommandEvent e) { - if(!TechDiscordBot.getBot().getSpigotStatus().isUsable()) { + if(!TechDiscordBot.getSpigotStatus().isUsable()) { e.replyEmbeds( new TechEmbedBuilder("API") .text("The API has to be usable to execute this command!") diff --git a/src/main/java/me/TechsCode/TechDiscordBot/spigotmc/data/APIStatus.java b/src/main/java/me/TechsCode/TechDiscordBot/spigotmc/data/APIStatus.java index 0e3df4f3..59487eec 100644 --- a/src/main/java/me/TechsCode/TechDiscordBot/spigotmc/data/APIStatus.java +++ b/src/main/java/me/TechsCode/TechDiscordBot/spigotmc/data/APIStatus.java @@ -88,20 +88,4 @@ public static APIStatus getStatus(SongodaAPIClient client) { return status; } - public String getStatus() { - return status; - } - - public String getDescription() { - return description; - } - - public boolean isUsable() { - return this == ONLINE || this == NOT_FETCHING; - } - - public String getEmoji() { - return TechDiscordBot.getGuild().getEmotesByName(emojiName, true).get(0).getAsMention(); - } - }