Download src/events/messageReactionRemove.js from APRKDEV/wsb-bot: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/spaces/APRKDEV/wsb-bot/resolve/c8f3880098432483b23491dd763585274d00f8c8/src/events/messageReactionRemove.js
- Command line
-
hf download hf://spaces/APRKDEV/wsb-bot@c8f3880098432483b23491dd763585274d00f8c8/src/events/messageReactionRemove.js
-
curl -L -o messageReactionRemove.js https://huggingface.co/spaces/APRKDEV/wsb-bot/resolve/c8f3880098432483b23491dd763585274d00f8c8/src/events/messageReactionRemove.js
506 Bytes
| const { handleVerifyReactionRemove } = require('../systems/verification'); | |
| module.exports = { | |
| name: 'messageReactionRemove', | |
| async execute(client, reaction, user) { | |
| if (user.bot) return; | |
| if (reaction.partial) { | |
| try { await reaction.fetch(); } catch { return; } | |
| } | |
| if (reaction.message.partial) { | |
| try { await reaction.message.fetch(); } catch { return; } | |
| } | |
| await handleVerifyReactionRemove(reaction, user, client); | |
| }, | |
| }; | |