wsb-bot / src /events /messageReactionAdd.js
APRK01
Initial commit: WSB Discord Bot
3c7e34b
raw
history blame contribute delete
578 Bytes
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);
},
};