From 5443ed294c650b5747bd0200597a0a4bd010760f Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 27 Apr 2022 20:06:35 +0300 Subject: [PATCH] dev override --- src/structure/components/inhibitors/Permissions.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/structure/components/inhibitors/Permissions.js b/src/structure/components/inhibitors/Permissions.js index 93b5a4b..8415239 100644 --- a/src/structure/components/inhibitors/Permissions.js +++ b/src/structure/components/inhibitors/Permissions.js @@ -17,8 +17,12 @@ class Permissions extends Inhibitor { async execute(invoker, command, override = null) { + const userWrapper = await invoker.userWrapper(); + if (userWrapper.developer) return super._succeed(); + const { guild, member } = invoker; const { permissions: { type } } = await guild.settings(); + const permissions = override ?? command.memberPermissions; const memberPerms = invoker.channel.permissionsFor(member);