From da9828c41fa36603cbc94f789aa7c7fba0e05010 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 21 Dec 2017 19:20:48 -0500 Subject: Use the proper endpoint for removing your own reaction. --- discord/message.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'discord/message.py') 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): -- cgit v1.2.3