mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Implement "partial" message events.
These are events that get triggered regardless of the state of the message cache. Useful for getting data from before the bot was booted.
This commit is contained in:
1 parent
1be119cd45
commit
d239cc2666
7 files changed
+178
-26
No files matched your search
+1
-1
@@ -67,7 +67,7 @@ class Reaction:
|
||||
|
||||
def __init__(self, *, message, data, emoji=None):
|
||||
self.message = message
|
||||
self.emoji = message._state.get_reaction_emoji(data['emoji']) if emoji is None else emoji
|
||||
self.emoji = emoji or message._state.get_reaction_emoji(data['emoji'])
|
||||
self.count = data.get('count', 1)
|
||||
self.me = data.get('me')
|
||||
|
||||
|
||||
Reference in new issue
Block a user