mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 17:03:38 +00:00
Removing error messages are going to debug channel
This commit is contained in:
@ -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);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user