Closed ghost closed 2 years ago
Attempted to rewrite the entire leaderboard system and it still displays all users on a single page. Reverted to original (displayed) leaderboard system. No idea what to do, so any help is appreciated.
Partitioned the for loop, was my own fault. Derp.
Checklist
Make sure that you've checked all the items below.
JDABuilder.createLight()
, you added the following gateway intents:.setRemoveOnReact(true)
, you have the following permission:Library info
What libraries versions are you using.
I have a list of users (stored in a properties file) that have a level. I sort the users by their level and then send the sorted list back to the guild. I paginate the list, but it's still showing all of the users instead of X per page. I know I've probably just missed something, but for the life of me I can't figure out what.
Map<String, Integer> unsortedMap = new HashMap<String, Integer>(); for (String key : prop.stringPropertyNames()) { String value = prop.getProperty(key); unsortedMap.put(key, Integer.valueOf(value)); }