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

Detailed errors

This commit is contained in:
MatteZ02 2020-06-08 13:41:49 +03:00
parent 2b60f0ec12
commit 5bf311de45
4 changed files with 5 additions and 5 deletions

View File

@ -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}\``);
};

View File

@ -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",

View File

@ -25,4 +25,4 @@ module.exports = function (msg, args, client, Discord, command) {
client.users.cache.get(client.config.devId).send(embed);
console.error(error);
}
};
};

View File

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