mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-11-03 06:35:04 +00:00
Removing error messages are going to debug channel
This commit is contained in:
1 parent
b5b1387ec6
commit
af44f182f6
3 files changed
+12
-12
No files matched your search
@@ -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