diff --git a/.eslintignore b/.eslintignore index 79a1314..2f7730f 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,4 @@ -src/middleware/api +/api src/structure/components/settings/.eslintrc.json src/localization src/constants \ No newline at end of file diff --git a/.gitignore b/.gitignore index 79f8989..5c24a21 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,7 @@ commandHash.json logs # API -src/middleware/api +/api # testing stuff commands.json diff --git a/src/structure/components/inhibitors/Disabled.js b/src/structure/components/inhibitors/Disabled.js index 23ff325..d6be6aa 100644 --- a/src/structure/components/inhibitors/Disabled.js +++ b/src/structure/components/inhibitors/Disabled.js @@ -11,7 +11,9 @@ class Disabled extends Inhibitor { } async execute(invoker, command) { - if (command.disabled) return super._fail({ modifier: invoker.format('INHIBITOR_DISABLED', { globally: true }, { code: true }) }); + + const user = await invoker.userWrapper(); + if (command.disabled && !user.developer) return super._fail({ modifier: invoker.format('INHIBITOR_DISABLED', { globally: true }, { code: true }) }); if (!invoker.guild) return super._succeed(); const settings = await invoker.guild.settings(); @@ -20,6 +22,7 @@ class Disabled extends Inhibitor { }); return super._succeed(); + } }