aboutsummaryrefslogtreecommitdiff
path: root/discord/message.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-12-21 19:20:48 -0500
committerRapptz <[email protected]>2017-12-21 19:20:48 -0500
commitda9828c41fa36603cbc94f789aa7c7fba0e05010 (patch)
tree0d396032b1748a04aa4157874e06d95e860c3d37 /discord/message.py
parentUpdate Emoji.url to point to the GIF version of the animated emoji. (diff)
downloaddiscord.py-da9828c41fa36603cbc94f789aa7c7fba0e05010.tar.xz
discord.py-da9828c41fa36603cbc94f789aa7c7fba0e05010.zip
Use the proper endpoint for removing your own reaction.
Diffstat (limited to 'discord/message.py')
-rw-r--r--discord/message.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/discord/message.py b/discord/message.py
index 15e7cfb5..8059647d 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -701,7 +701,10 @@ class Message:
else:
raise InvalidArgument('emoji argument must be str, Emoji, or Reaction not {.__class__.__name__}.'.format(emoji))
- yield from self._state.http.remove_reaction(self.id, self.channel.id, emoji, member.id)
+ if member.id == self._state.self_id:
+ yield from self._state.http.remove_own_reaction(self.id, self.channel.id, emoji)
+ else:
+ yield from self._state.http.remove_reaction(self.id, self.channel.id, emoji, member.id)
@asyncio.coroutine
def clear_reactions(self):