is this "error handling"?

This commit is contained in:
2025-11-01 00:37:31 -04:00
parent cd20808457
commit d4544af7a0

View File

@@ -68,7 +68,7 @@ client.on(Events.MessageReactionAdd, (reaction, user) => {
if (reaction.emoji.name === '🫃' && !user.bot) { if (reaction.emoji.name === '🫃' && !user.bot) {
reaction.message.react('🫃') reaction.message.react('🫃')
for (const mpreg of mpregs) { for (const mpreg of mpregs) {
reaction.message.react(mpreg).catch(console.error()) reaction.message.react(mpreg).catch(err => console.error(err.stack?.split('\n')[0] || err.message || String(err).split('\n')[0]))
} }
} }