diff --git a/package.json b/package.json index b22fde08..aad0862c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "musix", - "version": "3.6.1", + "version": "3.6.2", "description": "V3 for Musix the discord music bot", "main": "./index.js", "scripts": { diff --git a/src/events/dispatcherEvents/error.js b/src/events/dispatcherEvents/error.js index f8ae59fd..01ef243f 100644 --- a/src/events/dispatcherEvents/error.js +++ b/src/events/dispatcherEvents/error.js @@ -1,12 +1,14 @@ -module.exports = async function (client, error, guild) { - const queue = client.queue.get(guild.id); - console.log(error); - /*if (error = "Error: input stream: This video contains content from WMG, who has blocked it on copyright grounds.") { - queue.endReason = "skip"; - queue.connection.dispatcher.end(); - return queue.textChannel.send(client.messages.songBlockedWMG); - }*/ - queue.voiceChannel.leave(); - client.queue.delete(guild.id); - return queue.textChannel.send(client.messages.errorDispatcher + `\`${error}\``); +module.exports = { + async execute(client, error, guild) { + const queue = client.queue.get(guild.id); + console.log(error); + /*if (error = "Error: input stream: This video contains content from WMG, who has blocked it on copyright grounds.") { + queue.endReason = "skip"; + queue.connection.dispatcher.end(); + return queue.textChannel.send(client.messages.songBlockedWMG); + }*/ + queue.voiceChannel.leave(); + client.queue.delete(guild.id); + return queue.textChannel.send(client.messages.errorDispatcher + `\`${error}\``); + }, }; \ No newline at end of file