From 458391794710dc1260fed6b671df3c72eea15d23 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Wed, 4 Mar 2020 19:19:43 +0200 Subject: [PATCH] Update client.js --- struct/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/struct/client.js b/struct/client.js index 5931f6ff..302e5274 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', (newState, oldState) => { - require(`${events}voiceStateUpdate`).execute(this, newState, oldState); + this.on('voiceStateUpdate', (oldState, newState) => { + require(`${events}voiceStateUpdate`).execute(this, oldState, newState); }); this.on('error', (error) => { client.channels.fetch(client.config.debug_channel).send('Error: ' + error);