aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-01-03 08:25:48 -0500
committerRapptz <[email protected]>2017-01-03 09:52:10 -0500
commit5e6bfecb078f076f9b04b145d5241688507cbd5b (patch)
tree5e42d5164d38cde68d3444865709f710d4b8f2f6 /discord/message.py
parentRename MessageChannel abc to Messageable. (diff)
downloaddiscord.py-5e6bfecb078f076f9b04b145d5241688507cbd5b.tar.xz
discord.py-5e6bfecb078f076f9b04b145d5241688507cbd5b.zip
Move away from StateContext and use ConnectionState directly.
Diffstat (limited to 'discord/message.py')
-rw-r--r--discord/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/message.py b/discord/message.py
index 9a49230c..308d5366 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -135,7 +135,7 @@ class Message:
setattr(self, key, transform(value))
def _add_reaction(self, data):
- emoji = self._state.reaction_emoji(data['emoji'])
+ emoji = self._state.get_reaction_emoji(data['emoji'])
reaction = discord.utils.find(lambda r: r.emoji == emoji, self.reactions)
is_me = data['me'] = int(data['user_id']) == self._state.self_id
@@ -150,7 +150,7 @@ class Message:
return reaction
def _remove_reaction(self, data):
- emoji = self._state.reaction_emoji(data['emoji'])
+ emoji = self._state.get_reaction_emoji(data['emoji'])
reaction = discord.utils.find(lambda r: r.emoji == emoji, self.reactions)
if reaction is None: