forked from Galactic/galactic-bot
26 lines
480 B
JavaScript
26 lines
480 B
JavaScript
const { Inhibitor } = require('../../../interfaces/');
|
|
|
|
class Disabled extends Inhibitor {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
name: 'disabled',
|
|
priority: 9,
|
|
silent: true
|
|
});
|
|
|
|
Object.defineProperty(this, 'client', { value: client });
|
|
|
|
}
|
|
|
|
execute(message, command) {
|
|
|
|
if(command.disabled) return super._fail({ globally: '' });
|
|
return super._succeed();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = Disabled; |