diff --git a/KilluaBot.iml b/KilluaBot.iml deleted file mode 100644 index 920ea54..0000000 --- a/KilluaBot.iml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/java/com/github/nilstrieb/commands/util/EmoteAddCommand.java b/src/main/java/com/github/nilstrieb/commands/util/EmoteAddCommand.java index b57da6d..ffe7b09 100644 --- a/src/main/java/com/github/nilstrieb/commands/util/EmoteAddCommand.java +++ b/src/main/java/com/github/nilstrieb/commands/util/EmoteAddCommand.java @@ -12,7 +12,9 @@ import java.awt.*; import java.awt.image.BufferedImage; import java.io.*; import java.net.URL; +import java.util.HashMap; import java.util.List; +import java.util.stream.Collectors; public class EmoteAddCommand extends Command { @@ -106,7 +108,7 @@ public class EmoteAddCommand extends Command { private boolean emoteLimitReached() { int max = event.getGuild().getMaxEmotes(); - int count = event.getGuild().retrieveEmotes().complete().size(); + int count = (int) event.getGuild().retrieveEmotes().complete().stream().filter(e -> !e.isAnimated()).count(); return max == count; }