mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Don't track unknown/hidden commands
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user