galactic-bot/structure/client/components/observers/MemberLogger.js
2020-04-17 23:18:52 +03:00

36 lines
539 B
JavaScript

const { Observer } = require('../../../interfaces/');
class MemberLogger extends Observer {
constructor(client) {
super(client, {
name: 'memberLogger',
priority: 3,
guarded: true
});
this.client = client;
this.hooks = [
['guildMemberAdd', this.onJoin.bind(this)],
['guildMemberRemove', this.onLeave.bind(this)]
];
}
async onJoin(member) {
}
async onLeave(member) {
}
}
module.exports = MemberLogger;