Browse Source

Fix case where on_reaction_add returned None in PMs with users.

pull/460/head
Rapptz 8 years ago
parent
commit
793cbedd0d
  1. 2
      discord/state.py

2
discord/state.py

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

Loading…
Cancel
Save