/**
* Handles both 'messageReactionAdd' and 'messageReactionRemove' events.
* When a reaction is added or removed:
* - If the reaction matches the specified emoji and the user has the required role,
* the message will be pinned or unpinned in the channel accordingly.
*/