Don't track unknown/hidden commands

This commit is contained in:
Dragon Fire
2020-05-23 13:54:52 -04:00
parent 9b7760880d
commit 20e9d4e6e1
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = class CommandLeaderboardCommand extends Command {
let previousPts = null;
let positionsMoved = 1;
return this.client.registry.commands
.filter(command => command.uses !== undefined)
.filter(command => command.uses !== undefined && !command.unknown && !command.hidden)
.sort((a, b) => b.uses - a.uses)
.map(command => {
if (previousPts === command.uses) {