| const { handleVerifyReaction } = require('../systems/verification'); | |
| module.exports = { | |
| name: 'messageReactionAdd', | |
| async execute(client, reaction, user) { | |
| if (user.bot) return; | |
| // Handle partial reactions (uncached messages) | |
| if (reaction.partial) { | |
| try { await reaction.fetch(); } catch { return; } | |
| } | |
| if (reaction.message.partial) { | |
| try { await reaction.message.fetch(); } catch { return; } | |
| } | |
| // Handle verification | |
| await handleVerifyReaction(reaction, user, client); | |
| }, | |
| }; | |