From 0e881b85f6abb29edd2ce4db317751d7eb237b6a Mon Sep 17 00:00:00 2001 From: Isaac Date: Sun, 30 May 2021 11:38:34 +0100 Subject: [PATCH] Fix help command --- src/commands/help.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/help.js b/src/commands/help.js index 4b8a0a8..e43e486 100644 --- a/src/commands/help.js +++ b/src/commands/help.js @@ -43,8 +43,9 @@ module.exports = class HelpCommand extends Command { } else { const is_staff = await message.member.isStaff(); const commands = this.manager.commands.filter(command => { - if (command.permissions.length >= 1) return !message.member.hasPermission(command.permissions); + if (command.permissions.length >= 1) return message.member.hasPermission(command.permissions); else if (command.staff_only) return is_staff; + else return true; }); const list = commands.map(command => { const description = command.description.length > 50