mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
No Owner Commands
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user