Fix case where on_reaction_add returned None in PMs with users.

This commit is contained in:
Rapptz 2017-01-13 01:11:32 -05:00
parent 9626210633
commit 793cbedd0d

View File

@ -689,6 +689,8 @@ class ConnectionState:
def _get_member(self, channel, id): def _get_member(self, channel, id):
if channel.is_private: if channel.is_private:
if id == self.user.id:
return self.user
return utils.get(channel.recipients, id=id) return utils.get(channel.recipients, id=id)
else: else:
return channel.server.get_member(id) return channel.server.get_member(id)