From 5bf311de45ecc3bf98b2781a52969a2c297dc8f0 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Mon, 8 Jun 2020 13:41:49 +0300 Subject: [PATCH] Detailed errors --- src/events/dispatcherEvents/error.js | 2 +- src/struct/config/messages.js | 4 ++-- src/struct/funcs/exe.js | 2 +- src/struct/funcs/handleVideo.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/events/dispatcherEvents/error.js b/src/events/dispatcherEvents/error.js index 8d30f85a..6521812a 100644 --- a/src/events/dispatcherEvents/error.js +++ b/src/events/dispatcherEvents/error.js @@ -9,5 +9,5 @@ module.exports = async function (client, error, guild) { client.users.cache.get(client.config.devId).send(client.messages.dispatcherError + error); queue.voiceChannel.leave(); client.queue.delete(guild.id); - return queue.textChannel.send(client.messages.errorDispatcher); + return queue.textChannel.send(client.messages.errorDispatcher + `\`${error}\``); }; \ No newline at end of file diff --git a/src/struct/config/messages.js b/src/struct/config/messages.js index 8f511b39..d68134e4 100644 --- a/src/struct/config/messages.js +++ b/src/struct/config/messages.js @@ -45,11 +45,11 @@ module.exports = { "I did not find a role `DJ` so i have created one for you!", djRoleFound: emojis.green_check_mark + "I found a `DJ` role from this guild! This role is now the DJ role.", - error: emojis.redx + "An error occured!", + error: emojis.redx + "An error occured!.\nError: ", errorConnecting: "Error with connecting to voice channel: ", errorDetected: "Error detected: ", errorDispatcher: emojis.redx + - "An error has occured while playing music! The queue has been deleted.", + "An error has occured while playing music! The queue has been deleted.\nError: ", errorExe: emojis.redx + "there was an error trying to execute that command!", errorExeOpt: emojis.redx + "there was an error trying to execute that option!", evalTitle: "Evaluation Command", diff --git a/src/struct/funcs/exe.js b/src/struct/funcs/exe.js index 87d1180d..c773b9fa 100644 --- a/src/struct/funcs/exe.js +++ b/src/struct/funcs/exe.js @@ -25,4 +25,4 @@ module.exports = function (msg, args, client, Discord, command) { client.users.cache.get(client.config.devId).send(embed); console.error(error); } -}; +}; \ No newline at end of file diff --git a/src/struct/funcs/handleVideo.js b/src/struct/funcs/handleVideo.js index 52f28b30..9012f949 100644 --- a/src/struct/funcs/handleVideo.js +++ b/src/struct/funcs/handleVideo.js @@ -64,7 +64,7 @@ module.exports = async function ( client.users.cache .get(client.config.devId) .send(client.messages.errorConnecting + error); - return msg.channel.send(client.messages.error); + return msg.channel.send(client.messages.error + error); } return; }; \ No newline at end of file