Download src/events/messageReactionAdd.js from APRKDEV/wsb-bot: direct link, hf CLI and curl.
- Browser
- Download file 578 Bytes
-
https://huggingface.co/spaces/APRKDEV/wsb-bot/resolve/c8f3880098432483b23491dd763585274d00f8c8/src/events/messageReactionAdd.js
- Command line
-
hf download hf://spaces/APRKDEV/wsb-bot@c8f3880098432483b23491dd763585274d00f8c8/src/events/messageReactionAdd.js
-
curl -L -o messageReactionAdd.js https://huggingface.co/spaces/APRKDEV/wsb-bot/resolve/c8f3880098432483b23491dd763585274d00f8c8/src/events/messageReactionAdd.js
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); | |
| }, | |
| }; | |