From 0e7b025c55d73ed713e8ec8d1291931969bc9801 Mon Sep 17 00:00:00 2001 From: Navy Date: Fri, 11 Jun 2021 13:06:43 +0300 Subject: [PATCH] yet another bugfix for permissions --- structure/client/components/inhibitors/Permissions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structure/client/components/inhibitors/Permissions.js b/structure/client/components/inhibitors/Permissions.js index a21c660..5036d80 100644 --- a/structure/client/components/inhibitors/Permissions.js +++ b/structure/client/components/inhibitors/Permissions.js @@ -27,7 +27,7 @@ class Permissions extends Inhibitor { //NOTE: Rewrite this entire fucking file :) if(missing.length === permissions.length && permissions.length > 0) return super._fail({ missing: missing.join(', ') }); return super._succeed(); - } else if(permissionType === 'grant' && command.permissionRequired) { + } else if(permissionType === 'grant' && permissions.length) { // vv Prevent Softlock vv if(safeCommands.includes(command.resolveable) && (this._checkDiscord(message, ['ADMINISTRATOR']).length === 0 || this._checkDiscord(message, ['MANAGE_GUILD']).length === 0)) { return super._succeed();