diff options
author | 2019-11-15 01:15:01 +0100 | |
---|---|---|
committer | 2019-11-15 01:15:01 +0100 | |
commit | 89890d6e1b673622cba918be48f325540e45db9e (patch) | |
tree | 17aeb679e951a9713ba188d0836b8c99666b017f /tests/helpers.py | |
parent | Refactor DuckPond msg relay to separate method (diff) |
Move payload checks to start of DuckPond.on_raw_reaction_add
The `DuckPond.on_raw_message_add` event listener makes an API call to
fetch the message the reaction was added to. However, we don't need
to fetch the message if the reaction that was added is not relevant
to the duck pond. To prevent such unnecessary API calls, I have moved
the code that checks for the relevance of the reaction event to
before the code that fetches the message.
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions