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

36 lines
539 B
JavaScript
Raw Normal View History

2020-04-17 22:18:52 +02:00
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;