25 lines
468 B
JavaScript
25 lines
468 B
JavaScript
const { Inhibitor } = require('../../../interfaces/');
|
|
|
|
class Restricted extends Inhibitor {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
name: 'restricted',
|
|
priority: 10,
|
|
guarded: true
|
|
});
|
|
|
|
}
|
|
|
|
execute(message, command) {
|
|
if(command.restricted && !message.author.developer) {
|
|
return super._fail();
|
|
}
|
|
return super._succeed();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = Restricted; |