From cea014ce9d641e79657e331bff3a79b7010b0c5d Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Thu, 8 May 2025 00:51:21 -0600 Subject: [PATCH] Move fix for old DM subs --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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`); }); }) - }); + }) }); }); };