Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

feat: add .reaction and .reaction_count to MessageReaction events #561

Merged
merged 3 commits into from
Jul 11, 2022

Conversation

artem30801
Copy link
Contributor

@artem30801 artem30801 commented Jul 11, 2022

What type of pull request is this?

  • Non-breaking code change
  • Breaking code change
  • Documentation change/addition
  • Tests change

Description

Makes working with reaction events easier.

Changes

  • Added .reaction attribute to MessageReactionAdd (MessageReactionRemove inherits it) event class
  • Added .reaction_count property to MessageReactionAdd
  • _handle_message_reaction_change processor will now attempt to get reaction obj if message was not in cache and was fetched

Checklist

  • I've formatted my code with Black
  • I've ensured my code works on Python 3.10.x
  • I've tested my code

@artem30801 artem30801 added Improvement Something that is already implemented but can be done better New Feature::Library A new feature for the library labels Jul 11, 2022
@artem30801 artem30801 changed the title feat: add .reaction and .count to MessageReaction events feat: add .reaction and .reaction_count to MessageReaction events Jul 11, 2022
@LordOfPolls LordOfPolls merged commit c231c70 into dev Jul 11, 2022
@LordOfPolls LordOfPolls deleted the feat-add-reaction-to-event branch July 11, 2022 18:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Improvement Something that is already implemented but can be done better New Feature::Library A new feature for the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants