Removing error messages are going to debug channel

This commit is contained in:
Christer Warén committed 2020-03-08 16:22:34 +02:00
1 parent b5b1387ec6
commit af44f182f6
3 files changed
+12 -12

No files matched your search

-5
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);
}
};