diff --git a/index.js b/index.js index 6ffeb13..d6c410e 100644 --- a/index.js +++ b/index.js @@ -510,8 +510,6 @@ const handleDiscord = function (data) { thisMsg = JSON.parse(JSON.stringify(discordMsg)); thisMsg.content = row.custommessage || null; user.send(thisMsg).catch((err) => { - console.error(err); - }).catch((err) => { console.log(`${colors.yellow("[WARN]")} Failed to send message to ${user.tag} (${user.id})`); const logChannel = discord.guilds.cache.get(config.discord.mainGuild).channels.cache.get(config.discord.logChannel); logChannel.send({ @@ -532,7 +530,7 @@ const handleDiscord = function (data) { console.log(`${colors.cyan("[INFO]")} Deleted user ${user.id} from database`); }); }) - }); + }) }); }); };