This commit is contained in:
Dragon Fire
2021-02-09 17:47:19 -05:00
parent 283b502c3f
commit 4507f16d82
+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = class GroupLeaderboardCommand extends Command {
group
};
});
const totalPages = Math.ceil(groups.size / 10);
const totalPages = Math.ceil(this.client.registry.groups.size / 10);
if (page > totalPages) return msg.say(`Page ${page} does not exist (yet).`);
return msg.say(stripIndents`
__**Command Group Usage Leaderboard (Page ${page}/${totalPages}):**__