No Owner Commands

This commit is contained in:
Dragon Fire
2024-03-20 22:19:01 -04:00
parent bd9022293c
commit 60b4d5b5b7
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -59,8 +59,8 @@ module.exports = class CommandLeaderboardCommand extends Command {
filterCommands(commands, owner, nsfw) {
return commands.filter(command => {
if (command.uses === undefined || command.unknown) return false;
if (!owner && command.hidden) return false;
if (!owner && command.ownerOnly) return false;
if (command.hidden) return false;
if (command.ownerOnly) return false;
if (!owner && command.nsfw && !nsfw) return false;
return true;
});
+2 -2
View File
@@ -62,8 +62,8 @@ module.exports = class LastRunLeaderboardCommand extends Command {
filterCommands(commands, owner, nsfw) {
return commands.filter(command => {
if (command.lastRun === undefined || command.unknown) return false;
if (!owner && command.hidden) return false;
if (!owner && command.ownerOnly) return false;
if (command.hidden) return false;
if (command.ownerOnly) return false;
if (!owner && command.nsfw && !nsfw) return false;
return true;
});