#How to make a leaderboard command with keyv?
6 messages · Page 1 of 1 (latest)
- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
this is what I got after making some experiment
you can convert the Map to an array using for...of loop and compare the array by using sort.
Example:
So by using this, you can get the top user by get the first value of the array (array[0])
btw this is the output of this code