forked from Galactic/galactic-bot
meta files
This commit is contained in:
parent
3b6f0c37a0
commit
2046ab6f31
@ -1,4 +1,4 @@
|
||||
src/middleware/api
|
||||
/api
|
||||
src/structure/components/settings/.eslintrc.json
|
||||
src/localization
|
||||
src/constants
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,7 +13,7 @@ commandHash.json
|
||||
logs
|
||||
|
||||
# API
|
||||
src/middleware/api
|
||||
/api
|
||||
|
||||
# testing stuff
|
||||
commands.json
|
||||
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user