reaction

A reaction was added to or removed from a message. action tells you which, so one handler covers both: apply it on added, undo it on removed.

The two payloads are identical apart from action, so match on (message_id, emoji, by.id) to find the reaction you stored.