36 lines
539 B
JavaScript
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;
|