mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = class GroupLeaderboardCommand extends Command {
|
|||||||
group
|
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).`);
|
if (page > totalPages) return msg.say(`Page ${page} does not exist (yet).`);
|
||||||
return msg.say(stripIndents`
|
return msg.say(stripIndents`
|
||||||
__**Command Group Usage Leaderboard (Page ${page}/${totalPages}):**__
|
__**Command Group Usage Leaderboard (Page ${page}/${totalPages}):**__
|
||||||
|
|||||||
Reference in New Issue
Block a user