meta files

This commit is contained in:
Erik 2022-05-13 11:07:56 +03:00
parent 3b6f0c37a0
commit 2046ab6f31
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
3 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
src/middleware/api
/api
src/structure/components/settings/.eslintrc.json
src/localization
src/constants

2
.gitignore vendored
View File

@ -13,7 +13,7 @@ commandHash.json
logs
# API
src/middleware/api
/api
# testing stuff
commands.json

View File

@ -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();
}
}