galactic-bot/structure/client/components/observers/BanLogger.js

36 lines
544 B
JavaScript
Raw Normal View History

2020-04-17 22:18:52 +02:00
const { Observer } = require('../../../interfaces/');
class BanLogger extends Observer {
constructor(client) {
super(client, {
2020-04-19 12:12:10 +02:00
name: 'banLogger',
2020-04-17 22:18:52 +02:00
priority: 3,
guarded: true
});
this.client = client;
this.hooks = [
['guildBanAdd', this.onBan.bind(this)],
['guildBanRemove', this.onUnban.bind(this)]
];
}
async onBan(guild, member) {
}
async onUnban(guild, member) {
}
}
module.exports = BanLogger;