forked from Galactic/galactic-bot
yet another bugfix for permissions
This commit is contained in:
parent
90dcbccc99
commit
0e7b025c55
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user