diff --git a/src/main/java/net/arptell/dhcpcord/DHCPCord.java b/src/main/java/net/arptell/dhcpcord/DHCPCord.java index 266eec3..0d110ee 100644 --- a/src/main/java/net/arptell/dhcpcord/DHCPCord.java +++ b/src/main/java/net/arptell/dhcpcord/DHCPCord.java @@ -1029,15 +1029,8 @@ else if(intent.equals("delete")) { } String[] args = msg.split(" "); channel.sendTyping().queue(); - List bots = guild.getMembersWithRoles(guild.getRolesByName("Unverified", true)); - bots.sort(new Comparator() { - - @Override - public int compare(Member m1, Member m2) { - return (int)(m1.getJoinDate().toEpochSecond() - m2.getJoinDate().toEpochSecond()); - } - - }); + List bots = guild.getMembersWithRoles(guild.getRolesByName("Unverified", true).get(0)); + bots.sort((m1, m2) -> (int)(m1.getJoinDate().toEpochSecond() - m2.getJoinDate().toEpochSecond())); int start = 10; String page = "1"; if(args.length > 1){