forked from Galactic/galactic-bot
36 lines
574 B
JavaScript
36 lines
574 B
JavaScript
const { Observer } = require('../../../interfaces/');
|
|
|
|
class MemberUpdates extends Observer {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
name: 'memberUpdates',
|
|
priority: 3,
|
|
guarded: true
|
|
});
|
|
|
|
this.client = client;
|
|
|
|
this.hooks = [
|
|
['voiceStateUpdate', this.onVoice.bind(this)],
|
|
['guildMemberUpdate', this.onMember.bind(this)]
|
|
];
|
|
|
|
}
|
|
|
|
async onVoice(oldState, newState) {
|
|
|
|
|
|
|
|
}
|
|
|
|
async onMember(oldMember, newMember) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = MemberUpdates; |