Skip to content

Commit

Permalink
added empty leaderboard handling to /leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
vb2007 committed Jul 28, 2024
1 parent 7018569 commit d8e49ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands/economy/leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ module.exports = {
var replyContent = query.map((user, index) =>
`${index + 1}. ${user.userName} : ${user.balance}$ :moneybag:`
).join("\n");

if (replyContent === "") {
replyContent = "No users found with a balance on this server.";
}
}

var embedReply = new EmbedBuilder({
Expand Down

0 comments on commit d8e49ca

Please sign in to comment.