Removing error messages are going to debug channel

This commit is contained in:
Christer Warén
2020-03-08 11:47:11 +02:00
parent b5b1387ec6
commit af44f182f6
3 changed files with 12 additions and 12 deletions

View File

@ -6,11 +6,6 @@ module.exports = function (msg, args, client, Discord, prefix, command) {
command.execute(msg, args, client, Discord, prefix, command);
} catch (error) {
msg.reply(`<:redx:674263474704220182> there was an error trying to execute that command! Please contact support with \`${prefix}bug\`!`);
const embed = new Discord.MessageEmbed()
.setTitle(`Musix ${error.toString()}`)
.setDescription(error.stack.replace(/at /g, '**at **'))
.setColor('#b50002');
client.debug_channel.send(embed);
console.error(error);
}
};