1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 04:31:56 +00:00

Update client.js

This commit is contained in:
MatteZ02 2020-03-04 19:19:43 +02:00
parent aa9fd1b2c8
commit 4583917947

View File

@ -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);