forked from Galactic/galactic-bot
36 lines
544 B
JavaScript
36 lines
544 B
JavaScript
const { Observer } = require('../../../interfaces/');
|
|
|
|
class BanLogger extends Observer {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
name: 'banLogger',
|
|
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; |