diff --git a/struct/client.js b/struct/client.js index ba446d00..5931f6ff 100644 --- a/struct/client.js +++ b/struct/client.js @@ -65,8 +65,8 @@ module.exports = class extends Client { this.on('guildCreate', (guild) => { require(`${events}guildCreate`).execute(this, guild); }); - this.on('voiceStateUpdate', (newMember) => { - require(`${events}voiceStateUpdate`).execute(this, newMember); + this.on('voiceStateUpdate', (newState, oldState) => { + require(`${events}voiceStateUpdate`).execute(this, newState, oldState); }); this.on('error', (error) => { client.channels.fetch(client.config.debug_channel).send('Error: ' + error);