Move fix for old DM subs
Some checks are pending
ptero-push / build (push) Waiting to run

This commit is contained in:
Christopher Cookman 2025-05-08 00:51:21 -06:00
parent 920058fed3
commit cea014ce9d

View file

@ -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`);
});
})
});
})
});
});
};