Skip to content

Commit

Permalink
Fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
faab007nl committed Oct 28, 2021
1 parent a3323be commit ff8cfd2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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!")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

}

0 comments on commit ff8cfd2

Please sign in to comment.