aboutsummaryrefslogtreecommitdiff
path: root/discord/reaction.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-06-09 18:36:59 -0400
committerRapptz <[email protected]>2017-06-09 18:36:59 -0400
commitd239cc26666ff255a0c86c83541ef90f2b586598 (patch)
treef7c644f297190cede85b324bdb1d776543523a1e /discord/reaction.py
parentAllow sending files list smaller than 2 elements in Messageable.send (diff)
downloaddiscord.py-d239cc26666ff255a0c86c83541ef90f2b586598.tar.xz
discord.py-d239cc26666ff255a0c86c83541ef90f2b586598.zip
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.
Diffstat (limited to 'discord/reaction.py')
-rw-r--r--discord/reaction.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/reaction.py b/discord/reaction.py
index 833f1b3d..91c606d9 100644
--- a/discord/reaction.py
+++ b/discord/reaction.py
@@ -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')