Haha-Yes/event/inhibitors/blacklist.js
2021-03-13 18:21:18 +01:00

19 lines
No EOL
415 B
JavaScript

const { Inhibitor } = require('discord-akairo');
const Blacklists = require('../../models').Blacklists;
class BlacklistInhibitor extends Inhibitor {
constructor() {
super('blacklist', {
reason: 'blacklist'
});
}
async exec(message) {
const blacklist = await Blacklists.findOne({where: {type:'global', uid:message.author.id}});
if (blacklist) return true;
}
}
module.exports = BlacklistInhibitor;