You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/event/inhibitors/blacklist.js

19 lines
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;