Use the proper endpoint for removing your own reaction.

This commit is contained in:
Rapptz
2017-12-21 19:20:48 -05:00
parent 97fc4bf651
commit da9828c41f
2 changed files with 9 additions and 1 deletions

View File

@ -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):